glom r1751 - in trunk: . glom/mode_data
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1751 - in trunk: . glom/mode_data
- Date: Mon, 24 Nov 2008 16:55:57 +0000 (UTC)
Author: murrayc
Date: Mon Nov 24 16:55:57 2008
New Revision: 1751
URL: http://svn.gnome.org/viewvc/glom?rev=1751&view=rev
Log:
2008-11-24 Murray Cumming <murrayc murrayc com>
* glom/mode_data/box_data_details.cc:
set_found_set_from_primary_key_value(): Do not crash if there is no
primary key, though we should not allow tables with no primary keys.
Modified:
trunk/ChangeLog
trunk/glom/mode_data/box_data_details.cc
Modified: trunk/glom/mode_data/box_data_details.cc
==============================================================================
--- trunk/glom/mode_data/box_data_details.cc (original)
+++ trunk/glom/mode_data/box_data_details.cc Mon Nov 24 16:55:57 2008
@@ -152,6 +152,9 @@
void Box_Data_Details::set_found_set_from_primary_key_value()
{
+ if(!m_field_primary_key)
+ return;
+
if(!m_primary_key_value.is_null())
{
m_found_set.m_where_clause = "\"" + m_table_name + "\".\"" + m_field_primary_key->get_name() +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]