Update of /cvsroot/monetdb/clients/src/examples/python
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29863/src/examples/python

Modified Files:
        sqlsample.py.in 
Log Message:
propagated changes of Monday Oct 22 2007 - Monday Oct 22 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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sqlsample.py.in     22 Oct 2007 10:35:40 -0000      1.2
+++ sqlsample.py.in     22 Oct 2007 12:22:41 -0000      1.3
@@ -20,9 +20,9 @@
 import sys
 
 if len(sys.argv) > 3:
-       dbh = 
MonetSQLdb.Connection(dbfarm=sys.argv[1],dbname=sys.argv[2],version=int(sys.argv[3]))
+    dbh = 
MonetSQLdb.Connection(dbfarm=sys.argv[1],dbname=sys.argv[2],version=int(sys.argv[3]))
 else:
-       dbh = MonetSQLdb.Connection(port=sys.argv[1],dbname=sys.argv[2])
+    dbh = MonetSQLdb.Connection(port=sys.argv[1],dbname=sys.argv[2])
 
 cursor = dbh.cursor();
 cursor.execute('select 1;')
@@ -34,9 +34,9 @@
 
 # deliberately executing a wrong SQL statement:
 try:
-       cursor.execute('( xyz 1);')
-except (RuntimeError), e: 
-       print e
+    cursor.execute('( xyz 1);')
+except (RuntimeError), e:
+    print e
 
 cursor.execute('create table python_table (i smallint,s string);');
 cursor.execute('insert into python_table values ( 3, \'three\');');


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to