diff options
Diffstat (limited to 'src/sqlite.c')
| -rw-r--r-- | src/sqlite.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sqlite.c b/src/sqlite.c index 54bfb7b6c61..9375b44da25 100644 --- a/src/sqlite.c +++ b/src/sqlite.c | |||
| @@ -51,6 +51,7 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_bind_double, (sqlite3_stmt*, int, double)); | |||
| 51 | DEF_DLL_FN (SQLITE_API int, sqlite3_bind_null, (sqlite3_stmt*, int)); | 51 | DEF_DLL_FN (SQLITE_API int, sqlite3_bind_null, (sqlite3_stmt*, int)); |
| 52 | DEF_DLL_FN (SQLITE_API int, sqlite3_bind_int, (sqlite3_stmt*, int, int)); | 52 | DEF_DLL_FN (SQLITE_API int, sqlite3_bind_int, (sqlite3_stmt*, int, int)); |
| 53 | DEF_DLL_FN (SQLITE_API const char*, sqlite3_errmsg, (sqlite3*)); | 53 | DEF_DLL_FN (SQLITE_API const char*, sqlite3_errmsg, (sqlite3*)); |
| 54 | DEF_DLL_FN (SQLITE_API const char*, sqlite3_errstr, (int)); | ||
| 54 | DEF_DLL_FN (SQLITE_API int, sqlite3_step, (sqlite3_stmt*)); | 55 | DEF_DLL_FN (SQLITE_API int, sqlite3_step, (sqlite3_stmt*)); |
| 55 | DEF_DLL_FN (SQLITE_API int, sqlite3_changes, (sqlite3*)); | 56 | DEF_DLL_FN (SQLITE_API int, sqlite3_changes, (sqlite3*)); |
| 56 | DEF_DLL_FN (SQLITE_API int, sqlite3_column_count, (sqlite3_stmt*)); | 57 | DEF_DLL_FN (SQLITE_API int, sqlite3_column_count, (sqlite3_stmt*)); |
| @@ -88,6 +89,7 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, | |||
| 88 | # undef sqlite3_bind_null | 89 | # undef sqlite3_bind_null |
| 89 | # undef sqlite3_bind_int | 90 | # undef sqlite3_bind_int |
| 90 | # undef sqlite3_errmsg | 91 | # undef sqlite3_errmsg |
| 92 | # undef sqlite3_errstr | ||
| 91 | # undef sqlite3_step | 93 | # undef sqlite3_step |
| 92 | # undef sqlite3_changes | 94 | # undef sqlite3_changes |
| 93 | # undef sqlite3_column_count | 95 | # undef sqlite3_column_count |
| @@ -112,6 +114,7 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, | |||
| 112 | # define sqlite3_bind_null fn_sqlite3_bind_null | 114 | # define sqlite3_bind_null fn_sqlite3_bind_null |
| 113 | # define sqlite3_bind_int fn_sqlite3_bind_int | 115 | # define sqlite3_bind_int fn_sqlite3_bind_int |
| 114 | # define sqlite3_errmsg fn_sqlite3_errmsg | 116 | # define sqlite3_errmsg fn_sqlite3_errmsg |
| 117 | # define sqlite3_errstr fn_sqlite3_errstr | ||
| 115 | # define sqlite3_step fn_sqlite3_step | 118 | # define sqlite3_step fn_sqlite3_step |
| 116 | # define sqlite3_changes fn_sqlite3_changes | 119 | # define sqlite3_changes fn_sqlite3_changes |
| 117 | # define sqlite3_column_count fn_sqlite3_column_count | 120 | # define sqlite3_column_count fn_sqlite3_column_count |
| @@ -139,6 +142,7 @@ load_dll_functions (HMODULE library) | |||
| 139 | LOAD_DLL_FN (library, sqlite3_bind_null); | 142 | LOAD_DLL_FN (library, sqlite3_bind_null); |
| 140 | LOAD_DLL_FN (library, sqlite3_bind_int); | 143 | LOAD_DLL_FN (library, sqlite3_bind_int); |
| 141 | LOAD_DLL_FN (library, sqlite3_errmsg); | 144 | LOAD_DLL_FN (library, sqlite3_errmsg); |
| 145 | LOAD_DLL_FN (library, sqlite3_errstr); | ||
| 142 | LOAD_DLL_FN (library, sqlite3_step); | 146 | LOAD_DLL_FN (library, sqlite3_step); |
| 143 | LOAD_DLL_FN (library, sqlite3_changes); | 147 | LOAD_DLL_FN (library, sqlite3_changes); |
| 144 | LOAD_DLL_FN (library, sqlite3_column_count); | 148 | LOAD_DLL_FN (library, sqlite3_column_count); |
| @@ -528,7 +532,7 @@ which means that we return a set object that can be queried with | |||
| 528 | { | 532 | { |
| 529 | if (stmt) | 533 | if (stmt) |
| 530 | sqlite3_finalize (stmt); | 534 | sqlite3_finalize (stmt); |
| 531 | 535 | errmsg = sqlite3_errstr (ret); | |
| 532 | goto exit; | 536 | goto exit; |
| 533 | } | 537 | } |
| 534 | 538 | ||