| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1149,7 +1149,7 @@ void DatabaseSync::Prepare(const FunctionCallbackInfo<Value>& args) { | |||
| 1149 | 1149 | ||
| 1150 | 1150 | Utf8Value sql(env->isolate(), args[0].As<String>()); | |
| 1151 | 1151 | sqlite3_stmt* s = nullptr; | |
| 1152 | - int r = sqlite3_prepare_v2(db->connection_, *sql, -1, &s, 0); | ||
| 1152 | + int r = sqlite3_prepare_v2(db->connection_, *sql, -1, &s, nullptr); | ||
| 1153 | 1153 | ||
| 1154 | 1154 | CHECK_ERROR_OR_THROW(env->isolate(), db, r, SQLITE_OK, void()); | |
| 1155 | 1155 | BaseObjectPtr<StatementSync> stmt = | |
@@ -2943,7 +2943,7 @@ BaseObjectPtr<StatementSync> SQLTagStore::PrepareStatement( | |||
| 2943 | 2943 | if (stmt == nullptr) { | |
| 2944 | 2944 | sqlite3_stmt* s = nullptr; | |
| 2945 | 2945 | int r = sqlite3_prepare_v2( | |
| 2946 | - session->database_->connection_, sql.data(), sql.size(), &s, 0); | ||
| 2946 | + session->database_->connection_, sql.data(), sql.size(), &s, nullptr); | ||
| 2947 | 2947 | ||
| 2948 | 2948 | if (r != SQLITE_OK) { | |
| 2949 | 2949 | THROW_ERR_SQLITE_ERROR(isolate, session->database_.get()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments