[glom] Correct a query from UPDATE to SELECT.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Correct a query from UPDATE to SELECT.
- Date: Fri, 25 Nov 2011 21:15:18 +0000 (UTC)
commit 3af39e0a8b0a3ff7977c426e0bf4631149607bbc
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 25 22:15:06 2011 +0100
Correct a query from UPDATE to SELECT.
* glom/libglom/report_builder.cc: Correc the query to get system preferences
values. This was apparently not tested yet.
ChangeLog | 7 +++++++
glom/libglom/report_builder.cc | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9d72a01..bdc9a75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-11-25 Murray Cumming <murrayc murrayc com>
+ Correct a query from UPDATE to SELECT.
+
+ * glom/libglom/report_builder.cc: Correc the query to get system preferences
+ values. This was apparently not tested yet.
+
+2011-11-25 Murray Cumming <murrayc murrayc com>
+
SQLite: Avoid a warning about int types for summary fields.
* glom/libglom/data_structure/glomconversions.cc:
diff --git a/glom/libglom/report_builder.cc b/glom/libglom/report_builder.cc
index 07eb89a..27de092 100644
--- a/glom/libglom/report_builder.cc
+++ b/glom/libglom/report_builder.cc
@@ -387,7 +387,7 @@ void ReportBuilder::report_build_records_field(const FoundSet& found_set, xmlpp:
{
//In this case it can only be a system preferences field.
//So let's get that data here:
- Glib::RefPtr<Gnome::Gda::SqlBuilder> builder = Gnome::Gda::SqlBuilder::create(Gnome::Gda::SQL_STATEMENT_UPDATE);
+ Glib::RefPtr<Gnome::Gda::SqlBuilder> builder = Gnome::Gda::SqlBuilder::create(Gnome::Gda::SQL_STATEMENT_SELECT);
builder->set_table(field->get_table_used(found_set.m_table_name));
builder->select_add_field(field->get_name(), found_set.m_table_name);
builder->select_set_limit(1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]