[libgda] check vnc now use gda_connection_parse_sql_string()
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] check vnc now use gda_connection_parse_sql_string()
- Date: Fri, 22 Feb 2019 17:56:07 +0000 (UTC)
commit 9f1291b76271159f014e7082e3f84d8a451c4a82
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Fri Feb 22 11:54:46 2019 -0600
check vnc now use gda_connection_parse_sql_string()
tests/data-models/check_vcnc.c | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/tests/data-models/check_vcnc.c b/tests/data-models/check_vcnc.c
index 5e27f67e1..b28c33c01 100644
--- a/tests/data-models/check_vcnc.c
+++ b/tests/data-models/check_vcnc.c
@@ -313,19 +313,16 @@ run_sql_select (GdaConnection *cnc, const gchar *sql, gboolean iter_only, GError
static gboolean
run_sql_non_select (GdaConnection *cnc, const gchar *sql, GdaSet *params, GError **error)
{
- GdaStatement *stmt;
- gint nrows;
- GdaSqlParser *parser;
+ GdaStatement *stmt;
+ gint nrows;
- parser = gda_connection_create_parser (cnc);
- stmt = gda_sql_parser_parse_string (parser, sql, NULL, NULL);
- g_object_unref (parser);
+ stmt = gda_connection_parse_sql_string (cnc, sql, NULL, error);
- nrows = gda_connection_statement_execute_non_select (cnc, stmt, params, NULL, error);
- g_object_unref (stmt);
- if (nrows == -1)
- return FALSE;
- return TRUE;
+ nrows = gda_connection_statement_execute_non_select (cnc, stmt, params, NULL, error);
+ g_object_unref (stmt);
+ if (nrows == -1)
+ return FALSE;
+ return TRUE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]