From: brian z. <bz...@us...> - 2002-04-21 14:22:18
|
Update of /cvsroot/jython/jython/Lib/test/zxjdbc In directory usw-pr-cvs1:/tmp/cvs-serv7571/Lib/test/zxjdbc Modified Files: dbextstest.py test.xml Log Message: prepared statements can live outside the cursor Index: dbextstest.py =================================================================== RCS file: /cvsroot/jython/jython/Lib/test/zxjdbc/dbextstest.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dbextstest.py 19 Apr 2002 19:47:45 -0000 1.4 --- dbextstest.py 21 Apr 2002 14:22:15 -0000 1.5 *************** *** 255,256 **** --- 255,264 ---- self.fail("failed autocommit query with u=[%d], v=[%d]" % (u, v)) + def testPrepare(self): + """testing the handling of a prepared statement""" + self._insertInto("one", 10) + p = self.db.prepare("select * from one") + self.db.isql(p) + self.db.isql(p) + p.close() + assert p.closed Index: test.xml =================================================================== RCS file: /cvsroot/jython/jython/Lib/test/zxjdbc/test.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** test.xml 12 Apr 2002 04:12:27 -0000 1.6 --- test.xml 21 Apr 2002 14:22:15 -0000 1.7 *************** *** 79,83 **** <argument name="driver" value="org.gjt.mm.mysql.Driver"/> </factory> ! <testcase from="zxtest" import="zxAPITestCase"/> <testcase from="zxtest" import="BCPTestCase"/> <testcase from="dbextstest" import="dbextsTestCase"/> --- 79,85 ---- <argument name="driver" value="org.gjt.mm.mysql.Driver"/> </factory> ! <testcase from="zxtest" import="zxAPITestCase"> ! <ignore name="testBestRow"/> ! </testcase> <testcase from="zxtest" import="BCPTestCase"/> <testcase from="dbextstest" import="dbextsTestCase"/> *************** *** 85,89 **** <test name="datasource" os="java"> <factory class="com.ziclix.python.sql.zxJDBC" method="connectx"> ! <argument name="datasource" value="org.gjt.mm.mysql.MysqlDataSource"/> <keyword name="serverName" value="192.168.1.102"/> <keyword name="databaseName" value="ziclix"/> --- 87,91 ---- <test name="datasource" os="java"> <factory class="com.ziclix.python.sql.zxJDBC" method="connectx"> ! <argument name="datasource" value="org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource"/> <keyword name="serverName" value="192.168.1.102"/> <keyword name="databaseName" value="ziclix"/> *************** *** 92,96 **** <keyword name="port" value="3306" type="int"/> </factory> ! <testcase from="zxtest" import="zxAPITestCase"/> <testcase from="zxtest" import="BCPTestCase"/> </test> --- 94,100 ---- <keyword name="port" value="3306" type="int"/> </factory> ! <testcase from="zxtest" import="zxAPITestCase"> ! <ignore name="testBestRow"/> ! </testcase> <testcase from="zxtest" import="BCPTestCase"/> </test> |