BUG Causes TGDSConnection.GetProp to crash with prMaxStringSize
Posted: Mon 18 Apr 2016 11:26
This in lattest BbDAC version : 5.6.21
The FCharLength = 0 and this causes Int div by Zero.
This problem appears if I try to create Database with TIBCConnection.CreateDataBase
And whole DB creating Code is here.
AConnection.Close;
AConnection.Params.Clear;
AConnection.Params.Add('USER ' + QuotedStr(AConnection.Username));
AConnection.Params.Add('PASSWORD ' + QuotedStr(AConnection.Password));
AConnection.Params.Add('PAGE_SIZE 8192');
AConnection.Params.Add('DEFAULT CHARACTER SET ' + AConnection.Options.Charset);
// AConnection.Options.CharLength := 1; // <- Addign This helps,
AConnection.CreateDataBase;
AConnection.Params.Clear;
Result := AConnection.Connected;
----
seems that in this case the CharLength is not initialized by the Charset given. Which is '' in our DB.
The FCharLength = 0 and this causes Int div by Zero.
This problem appears if I try to create Database with TIBCConnection.CreateDataBase
And whole DB creating Code is here.
AConnection.Close;
AConnection.Params.Clear;
AConnection.Params.Add('USER ' + QuotedStr(AConnection.Username));
AConnection.Params.Add('PASSWORD ' + QuotedStr(AConnection.Password));
AConnection.Params.Add('PAGE_SIZE 8192');
AConnection.Params.Add('DEFAULT CHARACTER SET ' + AConnection.Options.Charset);
// AConnection.Options.CharLength := 1; // <- Addign This helps,
AConnection.CreateDataBase;
AConnection.Params.Clear;
Result := AConnection.Connected;
----
seems that in this case the CharLength is not initialized by the Charset given. Which is '' in our DB.