]> 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:41 +0000 (09:19 -0500)
followup to 292aa19698326793003

Change-Id: I283059eaf747c722b871afa55aaeaa2889862584
(cherry picked from commit 668ea5b7384297236330ead78919889b4473807f)

test/orm/test_mapper.py

index 04007f873c70edd3f5f1bbbb192018616915f16e..d82815813a10f2de92c17f7ce7bee0de7672a3af 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: