[libgda/LIBGDA_4.2] Virtual connection: handle difference between blob and binary



commit e225f5e0b3a7d9b2ac92264d72d8b68854932488
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Apr 17 20:22:59 2011 +0200

    Virtual connection: handle difference between blob and binary

 libgda/sqlite/virtual/gda-vprovider-data-model.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgda/sqlite/virtual/gda-vprovider-data-model.c b/libgda/sqlite/virtual/gda-vprovider-data-model.c
index 0953c61..5062278 100644
--- a/libgda/sqlite/virtual/gda-vprovider-data-model.c
+++ b/libgda/sqlite/virtual/gda-vprovider-data-model.c
@@ -479,8 +479,10 @@ virtualCreate (sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlit
 			g_string_free (sql, TRUE);
 			return SQLITE_ERROR;
 		}
-		else if ((gtype == GDA_TYPE_BLOB) || (gtype == GDA_TYPE_BINARY))
+		else if (gtype == GDA_TYPE_BLOB)
 			type = "blob";
+		else if (gtype == GDA_TYPE_BINARY)
+			type = "binary";
 		else if (gtype == G_TYPE_STRING)
 			type = "string";
 		else if ((gtype == G_TYPE_INT) || (gtype == G_TYPE_UINT) || 



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