Skip to content

Commit

Permalink
fixed compilation of some DB units if PUREMORMOT2 is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Jan 23, 2022
1 parent 172d789 commit d5d171d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/db/mormot.db.sql.ibx.pas
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ procedure TSqlDBIbxStatement.Prepare(const aSQL: RawUtf8; ExpectResults: boolean
fStatement.SetStaleReferenceChecks(false);
fStatement.SetRetainInterfaces(true);
fColumnCount := 0;
fColumn.ReHash;
fColumn.ForceReHash;
if ExpectResults then
begin
fMeta := fStatement.GetMetaData;
Expand Down
2 changes: 1 addition & 1 deletion src/db/mormot.db.sql.zeos.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ procedure TSqlDBZeosStatement.ExecutePrepared;
if fExpectResults then
begin
fColumnCount := 0;
fColumn.ReHash;
fColumn.ForceReHash;
fCurrentRow := -1;
fResultSet := fStatement.ExecuteQueryPrepared;
if fResultSet = nil then
Expand Down

0 comments on commit d5d171d

Please sign in to comment.