[libgda/LIBGDA_4.0] MySQL provider SQL operation rendering correction



commit fe7a06f59483a2907824abed18619e7db6035fcb
Author: Vivien Malerba <malerba gnome-db org>
Date:   Mon Jul 26 22:16:33 2010 +0200

    MySQL provider SQL operation rendering correction

 providers/mysql/gda-mysql-ddl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/providers/mysql/gda-mysql-ddl.c b/providers/mysql/gda-mysql-ddl.c
index 9489b52..3eb08cf 100644
--- a/providers/mysql/gda-mysql-ddl.c
+++ b/providers/mysql/gda-mysql-ddl.c
@@ -232,13 +232,13 @@ gda_mysql_render_CREATE_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
 
 	/* composed primary key */
 	if (nbpkfields > 1) {
-		GSList *list = pkfields;
+		GSList *list;
 
 		g_string_append (string, ", PRIMARY KEY (");
 		for (list = pkfields; list; list = list->next) {
 			if (list != pkfields)
 				g_string_append (string, ", ");
-			g_string_append (string, (gchar *) tmp);
+			g_string_append (string, (gchar *) list->data);
 		}
 		g_string_append_c (string, ')');
 	}



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