[patch_done] Could you add this to the current source?

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
kschit
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.03.2009, 09:00

[patch_done] Could you add this to the current source?

Post by kschit »

Hello everybody,

I just found out, that shortInteger parameters are not supported as the others. Therefore could you please add the following line?

unit ZDbcInterbase6Utils;

...

procedure TZParamsSQLDA.UpdateString(const Index: Integer; Value: AnsiString);
var
SQLCode: SmallInt;
Stream: TStream;
begin
CheckRange(Index);
// SetFieldType(Index, Length(Value) + 1, SQL_TEXT + 1, 0);
{$R-}
with FXSQLDA.sqlvar[Index] do
begin
if (sqlind <> nil) and (sqlind^ = -1) then
Exit;
SQLCode := (sqltype and not(1));
case SQLCode of
SQL_TEXT : EncodeString(SQL_TEXT, Index, Value);
SQL_VARYING : EncodeString(SQL_VARYING, Index, Value);
SQL_LONG: PInteger(sqldata)^ := StrToInt(Value);
//Please add this line to current version
SQL_SHORT: PInteger(sqldata)^ := StrToInt(Value);

Thank you very much!!! I really enjoy working with these Compoents! They are great! Please keep up the great work!!!

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

Post by mdaems »

Hi Klaus,

I did add your patch to the code yesterday. SVN rev. 882 (testing branch).

Mark
Image
Locked