]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
harden HSTORE registration
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Dec 2024 15:58:01 +0000 (10:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Dec 2024 17:08:49 +0000 (12:08 -0500)
commit29569ccfde7247a7e0ed2afe43db53494da62fb2
tree67b32d79518236bb096518e3b1bd213094e18d31
parent134ad3bbdc4bcbee13acc043be0a98cc314fcaec
harden HSTORE registration

* use the driver_connection when we register on the connection
* assert targets passed to register_hstore assert as boolean true;
  psycopg docs say "if None, register globally" but looking in the
  source it's actually registering globally if any false-evaluating
  object is passed.

Change-Id: Ie1fd7c96714b7fe76ef964501691fa48352be259
lib/sqlalchemy/dialects/postgresql/hstore.py
lib/sqlalchemy/dialects/postgresql/psycopg.py