[libgda: 1/2] Update providers/postgres/gda-postgres-provider.c, providers/reuseable/postgres/gda-postgres-reuseab




commit 7909c8c46f7a8ebc741653c86f6cb167d4a8afc6
Author: TAO ZUHONG <taozuhong gmail com>
Date:   Wed Feb 16 13:50:28 2022 +0000

    Update providers/postgres/gda-postgres-provider.c, providers/reuseable/postgres/gda-postgres-reuseable.c

 providers/postgres/gda-postgres-provider.c            | 2 +-
 providers/reuseable/postgres/gda-postgres-reuseable.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index a7dfc84f7..423cac1a2 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -1460,7 +1460,7 @@ gda_postgres_provider_get_default_dbms_type (GdaServerProvider *provider, GdaCon
         if (type == GDA_TYPE_BINARY)
                 return "bytea";
         if (type == GDA_TYPE_BLOB)
-                return "oid";
+                return "bytea";
         if (type == G_TYPE_BOOLEAN)
                 return "bool";
         if (type == G_TYPE_DATE)
diff --git a/providers/reuseable/postgres/gda-postgres-reuseable.c 
b/providers/reuseable/postgres/gda-postgres-reuseable.c
index a6bd70a13..fb2b7cc4c 100644
--- a/providers/reuseable/postgres/gda-postgres-reuseable.c
+++ b/providers/reuseable/postgres/gda-postgres-reuseable.c
@@ -260,7 +260,7 @@ postgres_name_to_g_type (const gchar *name, const gchar *conv_func_name)
        else if (!strcmp (name, "point"))
                return GDA_TYPE_GEOMETRIC_POINT;
        else if (!strcmp (name, "oid"))
-               return GDA_TYPE_BLOB;
+               return G_TYPE_UINT;
        else if (!strcmp (name, "bytea"))
                return GDA_TYPE_BINARY;
        else if (!strcmp (name, "text"))
@@ -289,7 +289,7 @@ postgres_name_to_g_type (const gchar *name, const gchar *conv_func_name)
        if (!strncmp (conv_func_name, "bool", 4))
                return G_TYPE_BOOLEAN;
        if (!strncmp (conv_func_name, "oid", 3))
-               return GDA_TYPE_BLOB;
+               return G_TYPE_UINT;
        if (!strncmp (conv_func_name, "bytea", 5))
                return GDA_TYPE_BINARY;
        return G_TYPE_STRING;


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