Put a TZConnection, a TZQuery, a TDataSource and a TDBGrid to a form (set as usually).
Make a OnCreate event on the form like this:
procedure TForm1.FormCreate(Sender: TObject);
begin
ZQuery1.SQL.Text := 'SELECT 1 AS a, '''' AS b';
ZQuery1.Open;
DBGrid1.Columns[1].Index := 0;
ZQuery1.Refresh;
end;
The result is an access violation in ZDbcCache.pas at TZRowAcessor.SetString (line 2300 in 7.1.2-stable)
(but it surprisingly works with 'SELECT 0 AS a, '''' AS b' query)
I use delphi7 with postgresql.
I tried with Zeos 7.1.2-stable and 7.2.3a-stable.
Diff:
AV refinement:
TZRowAccessor.InternalSetString line 493 at ReallocMem
Could you attach a little bugtemplate app, please?
Cheers, Michael
Reproducable, indeed. Not compiler or Zeos-Version related. Same behavior on all known versions.
There happens something with the fieldref-index.
Bug accepted. Going to debug me in next days ):
Cheers, Michael
See the following thread in the Forums; http://zeoslib.sourceforge.net/viewtopic.php?f=38&t=50533
Starting with this post: http://zeoslib.sourceforge.net/viewtopic.php?p=82950#p82950
This bug should be fixed in the current branch of Zeos 7.2 now.