[libgdamm] Use Value instead of Value& to make the SqlBuilder::param() much more convenient to use.



commit 8aa94b81aaba72eafc68e85c0a62a1d28226c5ad
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Sep 28 20:19:40 2009 +0200

    Use Value instead of Value& to make the  SqlBuilder::param() much more convenient to use.

 ChangeLog                |   12 +++++++++---
 libgda/libgdamm.h        |    1 +
 libgda/src/sqlbuilder.hg |    4 ++--
 3 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4d4c31d..9b3da9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2009-09-25  Johannes Schmid <jschmid openismus com>
+2009-09-28  Johannes Schmid  <jschmid openismus com>
+
+  * libgda/src/sqlbuilder.hg: Use Value instead of Value& to make the 
+  SqlBuilder::param() much more convenient to use.
+  * libgda/libgdamm.h: Add sqlbuilder.h
+
+2009-09-25  Johannes Schmid  <jschmid openismus com>
 
 	* libgda/src/sqlbuilder.hg:
 	* libgda/src/sqlbuilder.ccg:
@@ -11,7 +17,7 @@
 	Added Value conversion (can hopefully be removed once libgda fixes the
 	constness of the argument)
 
-2009-09-24  Johannes Schmid <jschmid openismus com>
+2009-09-24  Johannes Schmid  <jschmid openismus com>
 
 	* libgda/src/filelist.am: 
 	Added sqlbuilder.hg/ccg
@@ -23,7 +29,7 @@
 	* tools/m4/convert_libgdamm.m4:
 	Added two new enums for GdaSqlBuilder
 
-2009-09-24  Johannes Schmid <jschmid openismus com>
+2009-09-24  Johannes Schmid  <jschmid openismus com>
 
 	* libgda/src/libgda_enums.defs:
 	* libgda/src/libgda_methods.defs:
diff --git a/libgda/libgdamm.h b/libgda/libgdamm.h
index 55f694c..a9a9aa0 100644
--- a/libgda/libgdamm.h
+++ b/libgda/libgdamm.h
@@ -57,6 +57,7 @@ extern const int libgdamm_micro_version;
 #include <libgdamm/serverprovider.h>
 #include <libgdamm/set.h>
 #include <libgdamm/sqlparser.h>
+#include <libgdamm/sqlbuilder.h>
 #include <libgdamm/statement.h>
 #include <libgdamm/transactionstatus.h>
 #include <libgdamm/xatransaction.h>
diff --git a/libgda/src/sqlbuilder.hg b/libgda/src/sqlbuilder.hg
index 5fdeda9..7eb5d3a 100644
--- a/libgda/src/sqlbuilder.hg
+++ b/libgda/src/sqlbuilder.hg
@@ -52,7 +52,7 @@ public:
   // Expression API
   _WRAP_METHOD(guint ident(guint id, const Glib::ustring& string), gda_sql_builder_ident)
   _IGNORE(gda_sql_builder_expr)
-  _WRAP_METHOD(guint expr(guint id, const Glib::RefPtr<DataHandler>& dh, Value& value), gda_sql_builder_expr_value)
+  _WRAP_METHOD(guint expr(guint id, const Glib::RefPtr<DataHandler>& dh, Value value), gda_sql_builder_expr_value)
    /** Defines an expression in Builder which may be reused to build other parts of a statement.
    * @param id: the requested ID, or 0 if to be determined automatically
    * @param value: value to set the expression to
@@ -61,7 +61,7 @@ public:
    *
    * @return the ID of the new expression, or 0 if there was an error
    */
-  guint expr(guint id, Value& value);
+  guint expr(guint id, Value value);
   _WRAP_METHOD(guint param(guint id, const Glib::ustring& param_name, GType type, bool nullok), gda_sql_builder_param)
   _WRAP_METHOD(guint cond(guint id, SqlOperatorType op, guint op1, guint op2, guint op3), gda_sql_builder_cond)
   _WRAP_METHOD_DOCS_ONLY(gda_sql_builder_cond_v)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]