I stumbled upon this, which looks like a bug.
Basically I get an EOutOfMemory error when I try to access a Fields[x].AsString from a TZQuery when the field is a ftWideString.
Bug occurs in ZAbstractRODataSet.pas at line 1195 (for trunk 187) :
Code: Select all
PWideString(Buffer)^ := RowAccessor.GetUnicodeString(ColumnIndex, Result)
I've put together a sample Delphi project which trigger this bug (the convoluted query is used to get the table structure of the Firebird DB). You might need to copy the fbclient.dll to the app directory.
Please let me know if I overlooked something.
Thanks for your time,
Boris.