glom r1871 - in trunk: . glom
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1871 - in trunk: . glom
- Date: Mon, 2 Feb 2009 10:34:17 +0000 (UTC)
Author: murrayc
Date: Mon Feb 2 10:34:17 2009
New Revision: 1871
URL: http://svn.gnome.org/viewvc/glom?rev=1871&view=rev
Log:
2009-02-02 Murray Cumming <murrayc murrayc com>>
* glom/base_db.cc: :set_field_value_in_database(): Correct a
copy/paste typo that was probably introduced when switching to using
parameters, so we now actually specify the primary key, so we really
change the data in the database.
Modified:
trunk/ChangeLog
trunk/glom/base_db.cc
Modified: trunk/glom/base_db.cc
==============================================================================
--- trunk/glom/base_db.cc (original)
+++ trunk/glom/base_db.cc Mon Feb 2 10:34:17 2009
@@ -2414,7 +2414,7 @@
params->add_holder(field_in_record.m_key->get_holder(field_in_record.m_key_value));
Glib::ustring strQuery = "UPDATE \"" + field_in_record.m_table_name + "\"";
strQuery += " SET \"" + field_in_record.m_field->get_name() + "\" = " + field_in_record.m_field->get_gda_holder_string();
- strQuery += " WHERE \"" +field_in_record.m_field->get_name() + "\" = " + field_in_record.m_field->get_gda_holder_string();
+ strQuery += " WHERE \"" + field_in_record.m_key->get_name() + "\" = " + field_in_record.m_key->get_gda_holder_string();
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try //TODO: The exceptions are probably already handled by query_execute(0.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]