[libgda] Adding debug message and formatting



commit c1a672b84ac7d76bad7d753a6f01b3c86268c6c4
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Thu May 28 08:45:31 2020 -0500

    Adding debug message and formatting

 libgda/sqlite/gda-sqlite-ddl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libgda/sqlite/gda-sqlite-ddl.c b/libgda/sqlite/gda-sqlite-ddl.c
index 66ce0aec1..aff075fcc 100644
--- a/libgda/sqlite/gda-sqlite-ddl.c
+++ b/libgda/sqlite/gda-sqlite-ddl.c
@@ -765,7 +765,7 @@ _gda_sqlite_render_RENAME_COLUMN  (GdaServerProvider *provider,
 
   g_string_append (string, " TO ");
 
-  tmp = gda_connection_operation_get_sql_identifier_at (cnc, op, "/COLUMN_DEF_P/COLUMN_NEW_NAME", error);
+  tmp = gda_connection_operation_get_sql_identifier_at (cnc, op, "/COLUMN_DEF_P/COLUMN_NAME_NEW", error);
 
   if (!tmp) {
     g_string_free (string, TRUE);
@@ -778,5 +778,9 @@ _gda_sqlite_render_RENAME_COLUMN  (GdaServerProvider *provider,
   sql = string->str;
   g_string_free (string, FALSE);
 
+#ifdef GDA_DEBUG
+       g_print ("Renderer SQL for SQLite: %s\n", sql);
+#endif
+
   return sql;
 }


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