]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
only split at first =
authorNick Wilkinson <nicholas.w@solenya.ai>
Thu, 5 Dec 2024 08:56:27 +0000 (10:56 +0200)
committerNick Wilkinson <nicholas.w@solenya.ai>
Thu, 5 Dec 2024 08:56:27 +0000 (10:56 +0200)
lib/sqlalchemy/dialects/postgresql/base.py

index 2a335c3d28d4e0b22c470becc4a1866d79b0fe61..5fa217cc0977ba79bb68d2008e3ae1f236ea9696 100644 (file)
@@ -4603,7 +4603,7 @@ class PGDialect(default.DefaultDialect):
                     dialect_options = {}
                     if row["reloptions"]:
                         dialect_options["postgresql_with"] = dict(
-                            [option.split("=") for option in row["reloptions"]]
+                            [option.split("=", 1) for option in row["reloptions"]]
                         )
                     # it *might* be nice to include that this is 'btree' in the
                     # reflection info.  But we don't want an Index object