[libgda] Improved GdaBrowser's query execution UI
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] Improved GdaBrowser's query execution UI
- Date: Sun, 13 Sep 2009 13:25:51 +0000 (UTC)
commit f1213a448290762e162cc8b213960c9e1b89366a
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Sep 10 21:37:12 2009 +0200
Improved GdaBrowser's query execution UI
tools/browser/query-exec/query-console.c | 3 ++-
tools/browser/query-exec/query-result.c | 9 +++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/tools/browser/query-exec/query-console.c b/tools/browser/query-exec/query-console.c
index 3aa3c3c..27c565d 100644
--- a/tools/browser/query-exec/query-console.c
+++ b/tools/browser/query-exec/query-console.c
@@ -44,7 +44,8 @@
"<span foreground=\"#4e9a06\"><b><tt>##id::int</tt></b></span>\n defines <b>id</b> as a non NULL integer\n" \
"<span foreground=\"#4e9a06\"><b><tt>##age::string::null</tt></b></span>\n defines <b>age</b> as a a string\n\n" \
"Valid types are: <tt>string</tt>, <tt>boolean</tt>, <tt>int</tt>,\n" \
- "<tt>date</tt>, <tt>time</tt>, <tt>timestamp</tt>, <tt>guint</tt></small>")
+ "<tt>date</tt>, <tt>time</tt>, <tt>timestamp</tt>, <tt>guint</tt>, <tt>blob</tt> and\n" \
+ "<tt>binary</tt></small>")
/*
* Statement execution structures
diff --git a/tools/browser/query-exec/query-result.c b/tools/browser/query-exec/query-result.c
index 491b579..655c45c 100644
--- a/tools/browser/query-exec/query-result.c
+++ b/tools/browser/query-exec/query-result.c
@@ -200,11 +200,16 @@ query_result_show_history_batch (QueryResult *qres, QueryEditorHistoryBatch *hba
if (hitem->result) {
if (GDA_IS_DATA_MODEL (hitem->result)) {
gint n, c;
+ gchar *tmp1, *tmp2;
n = gda_data_model_get_n_rows (GDA_DATA_MODEL (hitem->result));
c = gda_data_model_get_n_columns (GDA_DATA_MODEL (hitem->result));
+ tmp1 = g_strdup_printf (ngettext ("%d row", "%d rows", n), n);
+ tmp2 = g_strdup_printf (ngettext ("%d column", "%d columns", c), c);
g_string_append_printf (string,
- _("Data set with %d rows and %d columns"),
- n, c);
+ _("Data set with %s and %s"),
+ tmp1, tmp2);
+ g_free (tmp1);
+ g_free (tmp2);
}
else if (GDA_IS_SET (hitem->result)) {
GdaSet *set;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]