[solved] ZEOS 7.2 and Firebird 3 Boolean fields

The 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
Post Reply
abonic
Junior Boarder
Junior Boarder
Posts: 28
Joined: 25.11.2016, 17:00

[solved] ZEOS 7.2 and Firebird 3 Boolean fields

Post by abonic »

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;
User avatar
Prometeus
Senior Boarder
Senior Boarder
Posts: 56
Joined: 29.10.2005, 01:25

Re: ZEOS 7.2 and Firebird 3 Boolean fields

Post by Prometeus »

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
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: ZEOS 7.2 and Firebird 3 Boolean fields

Post by marsupilami »

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