diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-14 16:56:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-14 16:56:32 +0000 |
commit | 9f856b88f6695318e32842a88fddd8f645e5cda5 (patch) | |
tree | ff5cebeb6eef9a6917c457a57c77d494d2032cfd /test/dialect/oracle.py | |
parent | be6f2a9c5b6b3c51136917820350828794d7d126 (diff) | |
download | sqlalchemy-9f856b88f6695318e32842a88fddd8f645e5cda5.tar.gz |
- attempted to add a test for #622 / #751, but cant reproduce the failing condition
- fixed major oracle bug introduced by r3561, since colnames come back as unicode now,
need to encode keys in setinputsizes() step
Diffstat (limited to 'test/dialect/oracle.py')
-rw-r--r-- | test/dialect/oracle.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/dialect/oracle.py b/test/dialect/oracle.py index 2ad0c4beb..fa196c558 100644 --- a/test/dialect/oracle.py +++ b/test/dialect/oracle.py @@ -142,6 +142,22 @@ class TypesTest(SQLCompileTest): b = bindparam("foo", u"hello world!") assert b.type.dialect_impl(dialect).get_dbapi_type(dbapi) == 'STRING' + def test_longstring(self): + metadata = MetaData(testbase.db) + testbase.db.execute(""" + CREATE TABLE Z_TEST + ( + ID NUMERIC(22) PRIMARY KEY, + ADD_USER VARCHAR2(20) NOT NULL + ) + """) + try: + t = Table("z_test", metadata, autoload=True) + t.insert().execute(id=1.0, add_user='foobar') + assert t.select().execute().fetchall() == [(1, 'foobar')] + finally: + testbase.db.execute("DROP TABLE Z_TEST") + class SequenceTest(SQLCompileTest): def test_basic(self): seq = Sequence("my_seq_no_schema") |