[libgdamm] SqlBuilder: get_sql_statement(): Remove stupid copy_it parameter.



commit 4657c8178959706297ff383caf00b16756e391db
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed May 12 11:26:57 2010 +0200

    SqlBuilder: get_sql_statement(): Remove stupid copy_it parameter.
    
    * libgda/src/libgda_methods.defs:
    * libgda/src/sqlbuilder.hg: Adapt to my change in libgda, fixing the build.

 ChangeLog                      |    7 +++++++
 libgda/src/libgda_methods.defs |    5 -----
 libgda/src/sqlbuilder.hg       |    3 +--
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d47d618..e755428 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-12  Murray Cumming  <murrayc murrayc com>>
+
+	SqlBuilder: get_sql_statement(): Remove stupid copy_it parameter.
+
+	* libgda/src/libgda_methods.defs:
+	* libgda/src/sqlbuilder.hg: Adapt to my change in libgda, fixing the build.
+
 2010-05-12  Murray Cumming  <murrayc murrayc com>
 
 	SqlBuilder: Add select_add_target_id().
diff --git a/libgda/src/libgda_methods.defs b/libgda/src/libgda_methods.defs
index e002c46..14d2f13 100644
--- a/libgda/src/libgda_methods.defs
+++ b/libgda/src/libgda_methods.defs
@@ -5210,9 +5210,6 @@
   (of-object "GdaSqlBuilder")
   (c-name "gda_sql_builder_get_sql_statement")
   (return-type "GdaSqlStatement*")
-  (parameters
-    '("gboolean" "copy_it")
-  )
 )
 
 (define-method add_id
@@ -7970,5 +7967,3 @@
     '("const-GValue*" "value")
   )
 )
-
-
diff --git a/libgda/src/sqlbuilder.hg b/libgda/src/sqlbuilder.hg
index f050a02..35523dd 100644
--- a/libgda/src/sqlbuilder.hg
+++ b/libgda/src/sqlbuilder.hg
@@ -50,8 +50,7 @@ public:
 
   _WRAP_METHOD(Glib::RefPtr<Statement> get_statement() const, gda_sql_builder_get_statement, errthrow)
 
-  //TODO: Remove the stupid copy_it parameter from the C API.
-  _WRAP_METHOD(SqlStatement get_sql_statement(bool copy_it = false), gda_sql_builder_get_sql_statement, errthrow)
+  _WRAP_METHOD(SqlStatement get_sql_statement() const, gda_sql_builder_get_sql_statement, errthrow)
 
   _IGNORE(gda_sql_builder_add_expr, gda_sql_builder_add_param, gda_sql_builder_add_cond)
   _IGNORE(gda_sql_builder_add_cond_v, gda_sql_builder_add_id)



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