gnomemm r2120 - in libgnomedbmm/trunk: . docs/tutorial
- From: arminb svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2120 - in libgnomedbmm/trunk: . docs/tutorial
- Date: Mon, 23 Mar 2009 13:27:47 +0000 (UTC)
Author: arminb
Date: Mon Mar 23 13:27:47 2009
New Revision: 2120
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2120&view=rev
Log:
2009-03-23 Armin Burgmeier <armin openismus com>
* docs/tutorial/libgnomedbmm-tut.xml: Fixed syntax of modification
queries (Francis Smit).
Modified:
libgnomedbmm/trunk/ChangeLog
libgnomedbmm/trunk/docs/tutorial/libgnomedbmm-tut.xml
Modified: libgnomedbmm/trunk/docs/tutorial/libgnomedbmm-tut.xml
==============================================================================
--- libgnomedbmm/trunk/docs/tutorial/libgnomedbmm-tut.xml (original)
+++ libgnomedbmm/trunk/docs/tutorial/libgnomedbmm-tut.xml Mon Mar 23 13:27:47 2009
@@ -642,17 +642,17 @@
<para>
<programlisting>
-##/*:name='+0' :type='gint'*/
-##/*:name='-1' :type='gchararray'*/
+##/*name:'+0' type:gint*/
+##/*name:'-1' type:gchararray*/
</programlisting>
</para>
<para>
Such a placeholder always begins with the sequence ##/* and ends with */. In
between, multiple key-value pairs may be specified in the form
-:key='value'. The special value "+<number>" is
+key:value. The special value '+<number>' is
replaced by the new value in the column in the <classname>Gnome::Gda::DataModel</classname> with index <number>.
-Likewise, "-<number>" is replaced by the old value in
+Likewise, '-<number>' is replaced by the old value in
the column in the <classname>Gnome::Gda::DataModel</classname> with index <number>.
</para>
@@ -667,9 +667,9 @@
<para>
<programlisting>
-model->set_modification_query("INSERT INTO orders (customer) VALUES (##/*:name='+1' :type='gchararray'*/)");
-model->set_modification_query("DELETE FROM orders WHERE id=##/*:name='-0' :type='gint'*/");
-model->set_modification_query("UPDATE orders SET customer=##/*:name='+1' :type='gchararray'*/ WHERE id=##/*:name='-0' :type='gint'*/)");
+model->set_modification_query("INSERT INTO orders (customer) VALUES (##/*name:'+1' type:gchararray*/)");
+model->set_modification_query("DELETE FROM orders WHERE id=##/*name:'-0' type:gint*/");
+model->set_modification_query("UPDATE orders SET customer=##/*name:'+1' type:gchararray*/ WHERE id=##/*name:'-0' type:gint*/)");
</programlisting>
</para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]