ZEOS 7.2 and Firebird 3 Boolean fields

The BETA tester's forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
abonic
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 25.11.2016, 17:00

ZEOS 7.2 and Firebird 3 Boolean fields

Postby abonic » 25.11.2016, 17:22

ZEOS 7.2.1-rc do not work with Firebird 3 Boolean fields because of error in ZDbcInterbase6Utils.pas procedure TZSQLDA.InitFields(Parameters: boolean);

Here is the fix:

Code: Select all

case SqlVar.sqltype and (not 1) of
  { bug fix start }
  SQL_BOOLEAN_FB, // it works now
  { bug fix end }
  SQL_BOOLEAN, SQL_TEXT, SQL_TYPE_DATE, SQL_TYPE_TIME, SQL_DATE,
  SQL_BLOB, SQL_ARRAY, SQL_QUAD, SQL_SHORT,
  SQL_LONG, SQL_INT64, SQL_DOUBLE, SQL_FLOAT, SQL_D_FLOAT:
   IbReAlloc(SqlVar.sqldata, 0, Max(1, SqlVar.sqllen));
  SQL_VARYING:
   IbReAlloc(SqlVar.sqldata, 0, SqlVar.sqllen + 2)
end;

Prometeus
Senior Boarder
Senior Boarder
Posts: 50
Joined: 29.10.2005, 01:25

Re: ZEOS 7.2 and Firebird 3 Boolean fields

Postby Prometeus » 21.12.2016, 03:42

Hello,

I had the same problem with Zeos 7.3 SVN_3945 and Firebird 3.01. Boolean fields couldn't be recorded on database. I received the same error message and the above fix also worked.

Regards,
Joao Lira.

marsupilami
Gold Boarder
Gold Boarder
Posts: 588
Joined: 17.01.2011, 14:17

Re: ZEOS 7.2 and Firebird 3 Boolean fields

Postby marsupilami » 04.10.2017, 14:08

Just for the record: This got fixerd in Rev. 3943.


Return to “ZeosLib 7.2 Betatest Forum”

Who is online

Users browsing this forum: No registered users and 1 guest