]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- change this literal so that the bound name doesn't have a numeric
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Oct 2014 21:33:44 +0000 (17:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Oct 2014 21:33:44 +0000 (17:33 -0400)
name, this is sort of a bug for oracle

lib/sqlalchemy/testing/suite/test_insert.py

index c197145c7be13e852a5f5ee7fae621a61e0016d1..2334d304981ccd85974bdfc2a39ea095d9d76da5 100644 (file)
@@ -4,7 +4,7 @@ from .. import exclusions
 from ..assertions import eq_
 from .. import engines
 
-from sqlalchemy import Integer, String, select, literal_column
+from sqlalchemy import Integer, String, select, literal_column, literal
 
 from ..schema import Table, Column
 
@@ -96,7 +96,7 @@ class InsertBehaviorTest(fixtures.TablesTest):
               Column('data', String(50)),
               Column('x', Integer, default=5),
               Column('y', Integer,
-                     default=literal_column("2", type_=Integer) + 2))
+                     default=literal_column("2", type_=Integer) + literal(2)))
 
     def test_autoclose_on_insert(self):
         if requirements.returning.enabled: