[libgdamm] SqlBuilder: add_sub_select(), compound_add_sub_select(): Remove steal param.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdamm] SqlBuilder: add_sub_select(), compound_add_sub_select(): Remove steal param.
- Date: Wed, 12 May 2010 10:45:31 +0000 (UTC)
commit c16fbcbc5d0cc7b8ccd803a81efb53b585d007c9
Author: Murray Cumming <murrayc murrayc com>
Date: Wed May 12 12:45:26 2010 +0200
SqlBuilder: add_sub_select(), compound_add_sub_select(): Remove steal param.
* libgda/src/libgda_methods.defs:
* libgda/src/sqlbuilder.[hg|ccg]: Adapt to my change in libgda, fixing the
build.
ChangeLog | 8 ++++++++
libgda/src/libgda_methods.defs | 2 --
libgda/src/sqlbuilder.ccg | 2 +-
libgda/src/sqlbuilder.hg | 4 +---
4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e755428..3343d0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-12 Murray Cumming <murrayc murrayc-desktop>
+
+ SqlBuilder: add_sub_select(), compound_add_sub_select(): Remove steal param.
+
+ * libgda/src/libgda_methods.defs:
+ * libgda/src/sqlbuilder.[hg|ccg]: Adapt to my change in libgda, fixing the
+ build.
+
2010-05-12 Murray Cumming <murrayc murrayc com>>
SqlBuilder: get_sql_statement(): Remove stupid copy_it parameter.
diff --git a/libgda/src/libgda_methods.defs b/libgda/src/libgda_methods.defs
index 14d2f13..478ba79 100644
--- a/libgda/src/libgda_methods.defs
+++ b/libgda/src/libgda_methods.defs
@@ -5312,7 +5312,6 @@
(parameters
'("guint" "id")
'("GdaSqlStatement*" "sqlst")
- '("gboolean" "steal")
)
)
@@ -5510,7 +5509,6 @@
(return-type "none")
(parameters
'("GdaSqlStatement*" "sqlst")
- '("gboolean" "steal")
)
)
diff --git a/libgda/src/sqlbuilder.ccg b/libgda/src/sqlbuilder.ccg
index 05e207c..6d67437 100644
--- a/libgda/src/sqlbuilder.ccg
+++ b/libgda/src/sqlbuilder.ccg
@@ -47,7 +47,7 @@ SqlBuilder::SqlBuilder(SqlStatementType type)
guint SqlBuilder::add_sub_select(const SqlStatement& sqlst)
{
- return gda_sql_builder_add_sub_select(gobj(), 0, const_cast<GdaSqlStatement*>(sqlst.gobj()), false /* steal */);
+ return gda_sql_builder_add_sub_select(gobj(), 0, const_cast<GdaSqlStatement*>(sqlst.gobj()));
}
guint SqlBuilder::add_id(const Glib::ustring& string)
diff --git a/libgda/src/sqlbuilder.hg b/libgda/src/sqlbuilder.hg
index 35523dd..2d14865 100644
--- a/libgda/src/sqlbuilder.hg
+++ b/libgda/src/sqlbuilder.hg
@@ -154,7 +154,6 @@ public:
guint add_function(const Glib::ustring& function_name, guint arg);
- //TODO: Remove the stupid steal parameter.
guint add_sub_select(const SqlStatement& sqlst);
_IGNORE(gda_sql_builder_add_sub_select)
@@ -228,8 +227,7 @@ public:
/* COMPOUND SELECT Statement API */
//TODO: Wrap the enum when we wrap GdaSqlStatementCompound _WRAP_METHOD(void compound_set_type(SqlStatementCompoundType compound_type), gda_sql_builder_compound_set_type)
- //TODO: Remove the stupid steal parameter from the C API:
- _WRAP_METHOD(void compound_add_sub_select(const SqlStatement& sqlst, bool steal = false), gda_sql_builder_compound_add_sub_select)
+ _WRAP_METHOD(void compound_add_sub_select(const SqlStatement& sqlst), gda_sql_builder_compound_add_sub_select)
_WRAP_METHOD(SqlExpr export_expression(guint id) const, gda_sql_builder_export_expression)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]