feature/fact_knowledge_base #7

Merged
cromer merged 7 commits from feature/fact_knowledge_base into develop 2022-11-29 00:07:51 -03:00
3 changed files with 6 additions and 0 deletions
Showing only changes of commit 2ca55543ab - Show all commits

View File

@ -114,6 +114,8 @@ int obelisk::Entity::insertEntity(sqlite3* dbConnection)
setId((int) sqlite3_last_insert_rowid(dbConnection)); setId((int) sqlite3_last_insert_rowid(dbConnection));
} }
sqlite3_set_last_insert_rowid(dbConnection, 0);
result = sqlite3_finalize(ppStmt); result = sqlite3_finalize(ppStmt);
if (result != SQLITE_OK) if (result != SQLITE_OK)
{ {

View File

@ -147,6 +147,8 @@ int obelisk::Fact::insertFact(sqlite3* dbConnection)
setId((int) sqlite3_last_insert_rowid(dbConnection)); setId((int) sqlite3_last_insert_rowid(dbConnection));
} }
sqlite3_set_last_insert_rowid(dbConnection, 0);
result = sqlite3_finalize(ppStmt); result = sqlite3_finalize(ppStmt);
if (result != SQLITE_OK) if (result != SQLITE_OK)
{ {

View File

@ -117,6 +117,8 @@ int obelisk::Verb::insertVerb(sqlite3* dbConnection)
setId((int) sqlite3_last_insert_rowid(dbConnection)); setId((int) sqlite3_last_insert_rowid(dbConnection));
} }
sqlite3_set_last_insert_rowid(dbConnection, 0);
result = sqlite3_finalize(ppStmt); result = sqlite3_finalize(ppStmt);
if (result != SQLITE_OK) if (result != SQLITE_OK)
{ {