[Zope-DB] CVS: Products/DCOracle2/test - stest.py:1.1 common.py:1.4

Matthew T. Kromer matt@zope.com
Mon, 15 Oct 2001 11:06:10 -0400

Update of /cvs-repository/Products/DCOracle2/test
In directory cvs.zope.org:/tmp/cvs-serv7930

Modified Files:
Added Files:
Log Message:
Added my oracle 9i on sidhe to common, checkin stest to do a string NULL test

=== Added File Products/DCOracle2/test/stest.py ===
# this test from Christopher Jenkins, looking for bad binds in Oracle 9i

import DCOracle2
import common

db = DCOracle2.connect(common.getConnectionString())
c = db.cursor()

    c.execute('drop table stest')
except DCOracle2.DatabaseError: pass

c.execute('create table stest (s char(10))')

l1 = [(None,),("hello",),(None,)]
l2 = [("",),("hello",),("",)]

stmt = "insert into stest values(:1)"

c.executemany(stmt, l1)
c.executemany(stmt, l2)

c.execute('select * from stest')
print c.fetchall()

=== Products/DCOracle2/test/common.py 1.3 => 1.4 ===
     "ire.mi.org":  "scott/tiger@bane",
     "fizzle.mi.org":  "scott/tiger@bane",
+    "sidhe.mi.org":     "scott/tiger@sidhe",
     "djinn.digicool.com":  "scott/tiger"