[patch_done] ZDbcSqLiteResultSet -> TZSQLiteResultSet.Ope

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
mariuszekpl
Senior Boarder
Senior Boarder
Posts: 54
Joined: 30.09.2008, 10:59

[patch_done] ZDbcSqLiteResultSet -> TZSQLiteResultSet.Ope

Post by mariuszekpl »

is:

Code: Select all

procedure TZSQLiteResultSet.Open; 
...

    with ColumnInfo do
    begin
      ColumnLabel := StrPas(FieldName^);

Should be:

Code: Select all

procedure TZSQLiteResultSet.Open; 
...

    with ColumnInfo do
    begin
  {$IFDEF ZEOS_FULL_UNICODE}
      ColumnLabel := UTF8ToUnicodeString(StrPas(FieldName^));
  {$ELSE}
      ColumnLabel := StrPas(FieldName^);
  {$ENDIF}


Now you can open table with unicode field:

Code: Select all

procedure TForm2.Button3Click(Sender: TObject);
begin
ZQuery1.SQL.Text:='create table прапрпра2(id integer,daneЙЦЦУ integer);' ;
ZQuery1.ExecSQL;
ZQuery1.SQL.Text:='select * from прапрпра2;' ;
zquery1.Open;

end;
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

SVN Rev. 526.
Locked