Update of /cvsroot/monetdb/clients/src/examples/python
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3841/src/examples/python
Modified Files:
sqlsample.py.in
Log Message:
propagated changes of Tuesday Nov 20 2007 - Tuesday Nov 20 2007
from the Clients_1-20 branch to the development trunk
Index: sqlsample.py.in
===================================================================
RCS file: /cvsroot/monetdb/clients/src/examples/python/sqlsample.py.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- sqlsample.py.in 22 Oct 2007 12:22:41 -0000 1.3
+++ sqlsample.py.in 20 Nov 2007 13:44:02 -0000 1.4
@@ -44,4 +44,8 @@
cursor.execute('select * from python_table;');
print cursor.fetchall()
+s = ((0, 'row1'), (1, 'row2'))
+x = cursor.executemany("insert into python_table VALUES (%s, %s);", s)
+print(x);
+
cursor.execute('drop table python_table;');
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins