[libgda] PostgreSQL: data handlers for timestamp and dates depend on each connection
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] PostgreSQL: data handlers for timestamp and dates depend on each connection
- Date: Sun, 29 Sep 2013 16:41:12 +0000 (UTC)
commit 2c76b302a200d788f30fb0b65caa1047be8a28d5
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Sep 29 18:37:23 2013 +0200
PostgreSQL: data handlers for timestamp and dates depend on each connection
providers/postgres/gda-postgres-provider.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index f7d6bf6..69b26fe 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -1502,14 +1502,14 @@ gda_postgres_provider_get_data_handler (GdaServerProvider *provider, GdaConnecti
else if ((type == GDA_TYPE_TIME) ||
(type == GDA_TYPE_TIMESTAMP) ||
(type == G_TYPE_DATE)) {
- dh = gda_server_provider_handler_find (provider, NULL, type, NULL);
+ dh = gda_server_provider_handler_find (provider, cnc, type, NULL);
if (!dh) {
dh = gda_handler_time_new ();
gda_handler_time_set_sql_spec ((GdaHandlerTime *) dh, G_DATE_YEAR,
G_DATE_MONTH, G_DATE_DAY, '-', FALSE);
- gda_server_provider_handler_declare (provider, dh, NULL, G_TYPE_DATE, NULL);
+ gda_server_provider_handler_declare (provider, dh, cnc, G_TYPE_DATE, NULL);
gda_server_provider_handler_declare (provider, dh, NULL, GDA_TYPE_TIME, NULL);
- gda_server_provider_handler_declare (provider, dh, NULL, GDA_TYPE_TIMESTAMP, NULL);
+ gda_server_provider_handler_declare (provider, dh, cnc, GDA_TYPE_TIMESTAMP, NULL);
g_object_unref (dh);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]