Something I noticed might become a bug in Zeos.
There is an uninitialized variable in TZInterbase6Statement.ExecuteQuery...
[syntax="delphi"]
function TZInterbase6Statement.ExecuteQuery(const SQL: string): IZResultSet;
var
Cursor: string;
begin
// Cursor is not initialized
...
if CursorName <> '' then
begin
Cursor := CursorName;
GetPlainDriver.isc_dsql_set_cursor_name(@FStatusVector,
@StmtHandle, PChar(Cursor), 0);
CheckInterbase6Error(SQL);
end;
// cursor could have garbage in it
LastResultSet := GetCachedResultSet(SQL, Self,
TZInterbase6ResultSet.Create(Self, SQL, StmtHandle, Cursor,
SQLData, nil, FCachedBlob));
...
end;
[/syntax]
possible bug waiting to happen
Moderators: EgonHugeist, mdaems
-
- Fresh Boarder
- Posts: 19
- Joined: 25.10.2006, 19:25
-
- Fresh Boarder
- Posts: 19
- Joined: 25.10.2006, 19:25