gnomemm r2120 - in libgnomedbmm/trunk: . docs/tutorial



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=&apos;+0&apos; :type=&apos;gint&apos;*/
-##/*:name=&apos;-1&apos; :type=&apos;gchararray&apos;*/
+##/*name:&apos;+0&apos; type:gint*/
+##/*name:&apos;-1&apos; 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=&apos;value&apos;. The special value &quot;+&lt;number&gt;&quot; is
+key:value. The special value &apos;+&lt;number&gt;&apos; is
 replaced by the new value in the column in the <classname>Gnome::Gda::DataModel</classname> with index &lt;number&gt;.
-Likewise, &quot;-&lt;number&gt;&quot; is replaced by the old value in
+Likewise, &apos;-&lt;number&gt;&apos; is replaced by the old value in
 the column in the <classname>Gnome::Gda::DataModel</classname> with index &lt;number&gt;.
 </para>
 
@@ -667,9 +667,9 @@
 
 <para>
 <programlisting>
-model-&gt;set_modification_query(&quot;INSERT INTO orders (customer) VALUES (##/*:name=&apos;+1&apos; :type=&apos;gchararray&apos;*/)&quot;);
-model-&gt;set_modification_query(&quot;DELETE FROM orders WHERE id=##/*:name=&apos;-0&apos; :type=&apos;gint&apos;*/&quot;);
-model-&gt;set_modification_query(&quot;UPDATE orders SET customer=##/*:name=&apos;+1&apos; :type=&apos;gchararray&apos;*/ WHERE id=##/*:name=&apos;-0&apos; :type=&apos;gint&apos;*/)&quot;);
+model-&gt;set_modification_query(&quot;INSERT INTO orders (customer) VALUES (##/*name:&apos;+1&apos; type:gchararray*/)&quot;);
+model-&gt;set_modification_query(&quot;DELETE FROM orders WHERE id=##/*name:&apos;-0&apos; type:gint*/&quot;);
+model-&gt;set_modification_query(&quot;UPDATE orders SET customer=##/*name:&apos;+1&apos; type:gchararray*/ WHERE id=##/*name:&apos;-0&apos; type:gint*/)&quot;);
 </programlisting>
 </para>
 



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