'using', 'verbose', 'when', 'where'])
LEGAL_CHARACTERS = re.compile(r'^[A-Z0-9_$]+$', re.I)
-ILLEGAL_INITIAL_CHARACTERS = set(xrange(0, 10)).union(['$'])
+ILLEGAL_INITIAL_CHARACTERS = set([str(x) for x in xrange(0, 10)]).union(['$'])
BIND_PARAMS = re.compile(r'(?<![:\w\$\x5c]):([\w\$]+)(?![:\w\$])', re.UNICODE)
BIND_PARAMS_ESC = re.compile(r'\x5c(:[\w\$]+)(?![:\w\$])', re.UNICODE)
from sqlalchemy import *
-from sqlalchemy import sql
+from sqlalchemy import sql, schema
from sqlalchemy.sql import compiler
from sqlalchemy.test import *
-
class QuoteTest(TestBase, AssertsCompiledSQL):
@classmethod
def setup_class(cls):
print res2
assert(res2==[(1,2,3),(2,2,3),(4,3,2)])
+ def test_numeric(self):
+ metadata = MetaData()
+ t1 = Table('35table', metadata,
+ Column('25column', Integer))
+ self.assert_compile(schema.CreateTable(t1), 'CREATE TABLE "35table" ('
+ '"25column" INTEGER'
+ ')'
+ )
def testreflect(self):
meta2 = MetaData(testing.db)
t2 = Table('WorstCase2', meta2, autoload=True, quote=True)