Some bugs in 7.0.4

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
kellwin
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 16.10.2006, 07:34

Some bugs in 7.0.4

Post by kellwin »

Looks like I found 2 bugs in stable version.
1. ZDBCInterbaseMetadata.pas
function TZInterbase6DatabaseMetadata.UncachedGetColumns

Code: Select all

1810:        case TypeName of
1812:          7, 8 : Result.UpdateInt(7, 0);
1813:          16   : Result.UpdateInt(7, GetInt(ColumnIndexes[9]));
1814:          37, 38: UpdateNull(7);
The Last row should be:

Code: Select all

1814:          37, 38: Result.UpdateNull(7);
2. ZDBCMySql.pas
procedure TZMySQLConnection.Open;

Code: Select all

314:  GetPlainDriver.Init(FHandle);
315:  {EgonHugeist: Arrange Client-CodePage/CharacterSet first
    Now we know if UTFEncoding is neccessary or not}
316:  sMy_client_Char_Set :=String(GetPlainDriver.GetConnectionCharacterSet(FHandle));
317:  ConSettings.ClientCodePage := GetPlainDriver.ValidateCharEncoding(sMy_client_Char_Set); //This sets the internal use of Encodings..
In row 316 in some very old versions of MySQL-4.1 client dll, which I unhappily met, CharSet is not set to default after Init, so we get access violation error. (Best way is to upgrade the dll at last)
Proposed correction:
if GetPlainDriver.GetClientVersion<40110 then ConSettings.ClientCodePage:='latin1' else ConSettings.ClientCodePage:=GetPlainDriver.GetConnectionCharacterSet(FHandle));

Didn't want to register on bug tracker, sorry.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

kellwin,

patch done: R2519 /testing7.1 for the firebird thing
See: http://sourceforge.net/p/zeoslib/code-0 ... 01f0f:2518

patch done: R2520 /testing7.1 for the MySQL issue
(I couldn't accept the static 'latin1' in our code) See: http://sourceforge.net/p/zeoslib/code-0/2520/

what i don't know is: is the InformationSchema accessable on MySQL 4? on the other hand we should implement a workaround..
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply