|
@@ -278,7 +278,7 @@ var
|
|
begin
|
|
begin
|
|
//Get AutoInc Field initial value
|
|
//Get AutoInc Field initial value
|
|
if FAutoIncFieldNo <> -1 then
|
|
if FAutoIncFieldNo <> -1 then
|
|
- sqlite3_exec(FSqliteHandle, PChar('Select Max(' + Fields[FAutoIncFieldNo].FieldName +
|
|
|
|
|
|
+ sqlite3_exec(FSqliteHandle, PChar('Select Max(' + FieldDefs[FAutoIncFieldNo].Name +
|
|
') from ' + FTableName), @GetAutoIncValue, @FNextAutoInc, nil);
|
|
') from ' + FTableName), @GetAutoIncValue, @FNextAutoInc, nil);
|
|
|
|
|
|
FReturnCode := sqlite3_prepare(FSqliteHandle, PChar(FEffectiveSQL), -1, @vm, nil);
|
|
FReturnCode := sqlite3_prepare(FSqliteHandle, PChar(FEffectiveSQL), -1, @vm, nil);
|