mysql_collate="latin1_german2_ci", mysql_auto_increment="5", mysql_<somearg>...),
helps [ticket:418]
- mysql:
- mysql is inconsistent with what kinds of quotes it uses in foreign keys during a
SHOW CREATE TABLE, reflection updated to accomodate for all three styles [ticket:420]
+ - mysql table create options work on a generic passthru now, i.e. Table(..., mysql_engine='InnoDB',
+ mysql_collate="latin1_german2_ci", mysql_auto_increment="5", mysql_<somearg>...),
+ helps [ticket:418]
- firebird:
- order of constraint creation puts primary key first before all other constraints;
required for firebird, not a bad idea for others [ticket:408]
return colspec
def post_create_table(self, table):
- mysql_engine = table.kwargs.get('mysql_engine', None)
- if mysql_engine is not None:
- return " TYPE=%s" % mysql_engine
- else:
- return ""
+ args = ""
+ for k in table.kwargs:
+ if k.startswith('mysql_'):
+ opt = k[6:]
+ args += " %s=%s" % (opt.upper(), table.kwargs[k])
+ return args
class MySQLSchemaDropper(ansisql.ANSISchemaDropper):
def visit_index(self, index):
self.assert_(r==[(3, 'ed'), (4, 'wendy'), (5, 'laura')])
r = self.users.select(offset=5, order_by=[self.users.c.user_id]).execute().fetchall()
self.assert_(r==[(6, 'ralph'), (7, 'fido')])
-
+
+ @testbase.unsupported('mysql')
def test_scalar_select(self):
+ """test that scalar subqueries with labels get their type propigated to the result set."""
+ # mysql and/or mysqldb has a bug here, type isnt propigated for scalar subquery.
datetable = Table('datetable', metadata,
Column('id', Integer, primary_key=True),
Column('today', DateTime))