[libgdamm] Fix the examples (check) build.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdamm] Fix the examples (check) build.
- Date: Mon, 21 Jun 2010 21:25:17 +0000 (UTC)
commit b3b86eb65234b6ec87192b4888848b29f3f7e5a0
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Jun 21 18:28:40 2010 +0200
Fix the examples (check) build.
* examples/sqlbuilder/main.cc: Adapt to the
add_field_id()->add_field_value_id() API change.
ChangeLog | 7 +++++++
examples/sqlbuilder/main.cc | 8 ++++----
2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fb7085f..97e9567 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-06-21 Murray Cumming <murrayc murrayc com>
+ Fix the examples (check) build.
+
+ * examples/sqlbuilder/main.cc: Adapt to the
+ add_field_id()->add_field_value_id() API change.
+
+2010-06-21 Murray Cumming <murrayc murrayc com>
+
ServerOperation: set_value_at(): Make this templated.
* libgda/src/serveroperation.[hg|ccg]: Add set_value_at_as_value() and make
diff --git a/examples/sqlbuilder/main.cc b/examples/sqlbuilder/main.cc
index 5b795ba..ac08003 100644
--- a/examples/sqlbuilder/main.cc
+++ b/examples/sqlbuilder/main.cc
@@ -13,7 +13,7 @@ int main()
Gnome::Gda::SqlBuilder::create(Gnome::Gda::SQL_STATEMENT_INSERT);
ins_builder->set_table("customer");
- ins_builder->add_field_id(ins_builder->add_id("e"),
+ ins_builder->add_field_value_id(ins_builder->add_id("e"),
ins_builder->add_param("p1", G_TYPE_STRING, false));
ins_builder->add_field_value("f", 15);
ins_builder->add_field_value("g", "joe");
@@ -53,7 +53,7 @@ int main()
guint target_orders = sel_builder->select_add_target("orders");
guint join = sel_builder->select_join_targets(target_c, target_orders, Gnome::Gda::SQL_SELECT_JOIN_INNER);
sel_builder->select_add_target("c.date"); //Not sure about this. It was add add_field().
- sel_builder->add_field_id(sel_builder->add_id("name"),
+ sel_builder->add_field_value_id(sel_builder->add_id("name"),
sel_builder->add_id("person"));
render_as_sql(sel_builder);
@@ -72,7 +72,7 @@ int main()
args.push_back(func_builder->add_expr(Gnome::Gda::Value(5)));
args.push_back(func_builder->add_expr(Gnome::Gda::Value("Joe")));
guint func = func_builder->add_function("myfunc", args);
- func_builder->add_field_id(func);
+ func_builder->add_field_value_id(func);
render_as_sql(func_builder);
/* reuse the same GdaSqlBuilder object to have:
@@ -85,7 +85,7 @@ int main()
args2.push_back(expr_ten);
guint func_max = func_builder->add_function("MAX", args2);
- func_builder->add_field_id(func_max);
+ func_builder->add_field_value_id(func_max);
render_as_sql(func_builder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]