[libgda] GdaBrowser: use gda_data_select_compute_modification_statements_ext()



commit 178cccf1ec41cbd70382fa4d0e2c4151b877d354
Author: Vivien Malerba <malerba gnome-db org>
Date:   Fri Aug 5 16:33:50 2011 +0200

    GdaBrowser: use gda_data_select_compute_modification_statements_ext()

 tools/browser/common/ui-formgrid.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tools/browser/common/ui-formgrid.c b/tools/browser/common/ui-formgrid.c
index a9bafb0..a08ca10 100644
--- a/tools/browser/common/ui-formgrid.c
+++ b/tools/browser/common/ui-formgrid.c
@@ -1131,8 +1131,8 @@ compute_modification_statements (UiFormGrid *formgrid, GdaDataModel *model)
 		return;
 
 	g_print ("Computing MOD STMTs\n");
-	if (! gda_data_select_compute_modification_statements (GDA_DATA_SELECT (model), NULL))
-		return;
+	gda_data_select_compute_modification_statements_ext (GDA_DATA_SELECT (model),
+							     GDA_DATA_SELECT_COND_ALL_COLUMNS, NULL);
 
 	formgrid->priv->mod_stmt_auto_computed = TRUE;
 	g_object_get (model,
@@ -1148,5 +1148,7 @@ compute_modification_statements (UiFormGrid *formgrid, GdaDataModel *model)
 			g_print ("STMT[%d] = [%s]\n", mod, sql);
 			g_free (sql);
 		}
+		else
+			g_print ("STMT[%d] = ---\n", mod);
 	}
 }



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