[libgda] Revert "GdaVConnectionHub: removing warnings"



commit f93fff8d7ea5b4b90c41657852e6a1bb785df3d0
Author: Daniel Espinosa <esodan gmail com>
Date:   Sat Aug 11 11:04:07 2018 -0500

    Revert "GdaVConnectionHub: removing warnings"
    
    This reverts commit 79d96e67e435a339f7940856bd0cd7235376bc33.

 libgda/meson.build                          | 4 ++--
 libgda/sqlite/gda-sqlite-recordset.c        | 4 ++--
 libgda/sqlite/virtual/gda-vconnection-hub.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgda/meson.build b/libgda/meson.build
index 13ae743bf..56a149422 100644
--- a/libgda/meson.build
+++ b/libgda/meson.build
@@ -264,8 +264,8 @@ libgda_dep += [inc_libgdah_dep]
 libgda_cargs = [
                '-include',
                meson.build_root() + '/config.h',
-               '-DABI_VERSION="'+project_api_version+'"',
-               '-DABI_NAME="'+project_api_name+'"',
+               '-DABI_VERSION='+project_api_version,
+               '-DABI_NAME='+project_api_name,
        ]
 
 libgda_cargs += sqlite_cargs
diff --git a/libgda/sqlite/gda-sqlite-recordset.c b/libgda/sqlite/gda-sqlite-recordset.c
index f1b949c9a..22db1e26a 100644
--- a/libgda/sqlite/gda-sqlite-recordset.c
+++ b/libgda/sqlite/gda-sqlite-recordset.c
@@ -558,9 +558,9 @@ fetch_next_sqlite_row (GdaSqliteRecordset *model, gboolean do_store, GError **er
                                        gda_time_free (timegda);
                                }
                                else if (g_type_is_a (type, G_TYPE_DATE_TIME)) {
-                                       GDateTime* timestamp = g_date_time_new_from_iso8601 (
+                                       GDateTime* timestamp = gda_parse_iso8601_timestamp (
                                                                          (gchar *) SQLITE3_CALL 
(sqlite3_column_text) (ps->sqlite_stmt,
-                                                                               real_col), NULL);
+                                                                               real_col));
                                        if (timestamp == NULL) {
                                                GError *lerror = NULL;
                                                g_set_error (&lerror, GDA_SERVER_PROVIDER_ERROR,
diff --git a/libgda/sqlite/virtual/gda-vconnection-hub.c b/libgda/sqlite/virtual/gda-vconnection-hub.c
index 5294bac5d..dfe93dc43 100644
--- a/libgda/sqlite/virtual/gda-vconnection-hub.c
+++ b/libgda/sqlite/virtual/gda-vconnection-hub.c
@@ -700,7 +700,7 @@ create_value_from_sqlite3_gvalue (GType type, GValue *svalue, GError **error)
                if (!g_type_is_a (G_VALUE_TYPE (svalue), G_TYPE_STRING))
                        allok = FALSE;
                else {
-                       GDateTime* timestamp = g_date_time_new_from_iso8601 (g_value_get_string (svalue), 
NULL);
+                       GDateTime* timestamp = gda_parse_iso8601_timestamp (g_value_get_string (svalue));
                        if (timestamp == NULL) {
                                g_set_error (error, GDA_SERVER_PROVIDER_ERROR,
                                             GDA_SERVER_PROVIDER_DATA_ERROR,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]