mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-17 14:17:29 -04:00
add length to str for pk usage
This commit is contained in:
@@ -55,8 +55,8 @@ class InheritingSelectablesTest(ORMTest):
|
||||
def define_tables(self, metadata):
|
||||
global foo, bar, baz
|
||||
foo = Table('foo', metadata,
|
||||
Column('a', String, primary_key=1),
|
||||
Column('b', String, nullable=0))
|
||||
Column('a', String(30), primary_key=1),
|
||||
Column('b', String(30), nullable=0))
|
||||
|
||||
bar = foo.select(foo.c.b == 'bar').alias('bar')
|
||||
baz = foo.select(foo.c.b == 'baz').alias('baz')
|
||||
|
||||
Reference in New Issue
Block a user