[libgda] sqlite: provider using sqlite3_prepare_v2
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] sqlite: provider using sqlite3_prepare_v2
- Date: Mon, 8 Oct 2018 19:48:38 +0000 (UTC)
commit 4065df097d79c13217e08a13b8b4c82cce92e561
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Oct 8 12:11:30 2018 -0500
sqlite: provider using sqlite3_prepare_v2
libgda/sqlite/gda-sqlite-provider.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 3285b4149..b4268db15 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -17,7 +17,7 @@
* Copyright (C) 2011,2018 Daniel Espinosa <despinosa src gnome org>
* Copyright (C) 2011 Marek Černocký <marek manet cz>
* Copyright (C) 2012 Marco Ciampa <ciampix libero it>
- * Copyright (C) 2017 Daniel Espinosa <esodan gmail com>
+ * Copyright (C) 2017-2018 Daniel Espinosa <esodan gmail com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -1242,11 +1242,11 @@ gda_sqlite_provider_prepare_connection (GdaServerProvider *provider, GdaConnecti
int res;
sqlite3_stmt *pStmt;
if (enforce_fk)
- res = SQLITE3_CALL (sqlite3_prepare) (cdata->connection,
+ res = SQLITE3_CALL (sqlite3_prepare_v2) (cdata->connection,
"PRAGMA foreign_keys = ON", -1,
&pStmt, NULL);
else
- res = SQLITE3_CALL (sqlite3_prepare) (cdata->connection,
+ res = SQLITE3_CALL (sqlite3_prepare_v2) (cdata->connection,
"PRAGMA foreign_keys = OFF", -1,
&pStmt, NULL);
@@ -1621,7 +1621,7 @@ gda_sqlite_provider_perform_operation (GdaServerProvider *provider, GdaConnectio
/* create some contents */
int res;
sqlite3_stmt *pStmt;
- res = SQLITE3_CALL (sqlite3_prepare) (cdata->connection,
+ res = SQLITE3_CALL (sqlite3_prepare_v2) (cdata->connection,
"CREATE TABLE data (id int)", -1,
&pStmt, NULL);
@@ -1646,7 +1646,7 @@ gda_sqlite_provider_perform_operation (GdaServerProvider *provider, GdaConnectio
/* end */
}
- res = SQLITE3_CALL (sqlite3_prepare) (cdata->connection,
+ res = SQLITE3_CALL (sqlite3_prepare_v2) (cdata->connection,
"DROP TABLE data", -1,
&pStmt, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]