glom r1693 - in branches/glom-1-6: . glom
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1693 - in branches/glom-1-6: . glom
- Date: Tue, 30 Sep 2008 11:08:54 +0000 (UTC)
Author: jhs
Date: Tue Sep 30 11:08:54 2008
New Revision: 1693
URL: http://svn.gnome.org/viewvc/glom?rev=1693&view=rev
Log:
2008-09-30 Johannes Schmid <johannes schmid openismus com>
* glom/base_db.cc: Fixed build with disabled exceptions
Modified:
branches/glom-1-6/ChangeLog
branches/glom-1-6/glom/base_db.cc
Modified: branches/glom-1-6/glom/base_db.cc
==============================================================================
--- branches/glom-1-6/glom/base_db.cc (original)
+++ branches/glom-1-6/glom/base_db.cc Tue Sep 30 11:08:54 2008
@@ -2009,17 +2009,20 @@
const Glib::ustring query = Utils::build_sql_select_with_key(table_name, fieldsToGet, primary_key, primary_key_value);
Glib::RefPtr<Gnome::Gda::DataModel> data_model;
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
try
+#endif
{
data_model = query_execute(query);
}
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
catch(const Glib::Exception& ex)
{
std::cerr << "Base_DB::get_record_field_values_for_calculation(): Exception while executing SQL: " << query << std::endl;
handle_error(ex);
return field_values;
}
-
+#endif
if(data_model && data_model->get_n_rows())
{
int col_index = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]