]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add length, take two
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Dec 2025 14:19:23 +0000 (09:19 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Dec 2025 14:19:23 +0000 (09:19 -0500)
followup to 292aa19698326793003

Change-Id: I283059eaf747c722b871afa55aaeaa2889862584

test/orm/test_mapper.py

index 7c524f59c2534ed7ee21d0647a5600039c221b6a..c97bc4e79a6debd0da152da0cff0dbd5a6e65ec8 100644 (file)
@@ -1073,13 +1073,13 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL):
 
         def setup_props(mapper, class_):
             if property_type.ColumnProperty:
-                col = Column("new_column", String)
+                col = Column("new_column", String(50))
                 mapper.local_table.append_column(col)
                 mapper.add_property(
                     col.key, deferred(col, group="deferred_group")
                 )
             elif property_type.Column:
-                col = Column("new_column", String)
+                col = Column("new_column", String(50))
                 mapper.local_table.append_column(col)
                 mapper.add_property(col.key, col)
             elif property_type.Relationship: