mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 12:35:00 +00:00
sqlite3: Fix example program
...it was not running correctly even with sqlite3.
This commit is contained in:
parent
042e5476f1
commit
6dd21c6717
1 changed files with 6 additions and 1 deletions
|
@ -18,12 +18,17 @@ int main(int argc, char *argv[])
|
|||
assert(rc == SQLITE_OK);
|
||||
|
||||
rc = sqlite3_step(stmt);
|
||||
assert(rc == SQLITE_OK);
|
||||
assert(rc == SQLITE_ROW);
|
||||
|
||||
const unsigned char *result = sqlite3_column_text(stmt, 0);
|
||||
|
||||
printf("result = %s\n", result);
|
||||
|
||||
rc = sqlite3_step(stmt);
|
||||
assert(rc == SQLITE_DONE);
|
||||
|
||||
sqlite3_finalize(stmt);
|
||||
|
||||
sqlite3_close(db);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue