mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Set up the PreapredStatement for convenience in SQLite3QueryBuilder::create_prepared_statement().
This commit is contained in:
parent
04ef468ffa
commit
e845f2f905
@ -411,7 +411,13 @@ void SQLite3QueryBuilder::run_query() {
|
|||||||
Ref<PreparedStatement> SQLite3QueryBuilder::create_prepared_statement() {
|
Ref<PreparedStatement> SQLite3QueryBuilder::create_prepared_statement() {
|
||||||
ERR_FAIL_COND_V(!_connection.is_valid(), Ref<PreparedStatement>());
|
ERR_FAIL_COND_V(!_connection.is_valid(), Ref<PreparedStatement>());
|
||||||
|
|
||||||
return _connection->create_prepared_statement();
|
Ref<PreparedStatement> stmt = _connection->create_prepared_statement();
|
||||||
|
|
||||||
|
if (stmt.is_valid()) {
|
||||||
|
stmt->set_sql(get_result());
|
||||||
|
}
|
||||||
|
|
||||||
|
return stmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryBuilder *SQLite3QueryBuilder::select_last_insert_id() {
|
QueryBuilder *SQLite3QueryBuilder::select_last_insert_id() {
|
||||||
|
Loading…
Reference in New Issue
Block a user