From: Federico Caselli Date: Wed, 18 Jan 2023 21:28:34 +0000 (+0100) Subject: fix typo, add missing command to unittest pg docker example X-Git-Tag: rel_2_0_0rc3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6104e1e0321af1fb2f043006e31971a0bd28a8c0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix typo, add missing command to unittest pg docker example Change-Id: Ic640ccf7459c39cb4f6ab8dcfb3efed1a1dbb55f --- diff --git a/README.unittests.rst b/README.unittests.rst index 23f7292ccd..9d63d238fb 100644 --- a/README.unittests.rst +++ b/README.unittests.rst @@ -250,7 +250,7 @@ intended for production use! # configure the database sleep 10 - docker exec -ti postgres psql -U scott -c 'CREATE SCHEMA test_schema; CREATE SCHEMA test_schema_2;' test + docker exec -ti postgres psql -U scott -c 'CREATE SCHEMA test_schema; CREATE SCHEMA test_schema_2;CREATE EXTENSION hstore;' test # this last command is optional docker exec -ti postgres sed -i 's/#max_prepared_transactions = 0/max_prepared_transactions = 10/g' /var/lib/postgresql/data/postgresql.conf diff --git a/doc/build/orm/queryguide/columns.rst b/doc/build/orm/queryguide/columns.rst index e8098cda11..255c1f9028 100644 --- a/doc/build/orm/queryguide/columns.rst +++ b/doc/build/orm/queryguide/columns.rst @@ -775,7 +775,7 @@ The :func:`.query_expression` mapping has these caveats: .execution_options(populate_existing=True) ).first() -* The :func:`_orm.with_expression` SQL expression **is lost when when the object is +* The :func:`_orm.with_expression` SQL expression **is lost when the object is expired**. Once the object is expired, either via :meth:`.Session.expire` or via the expire_on_commit behavior of :meth:`.Session.commit`, the SQL expression and its value is no longer associated with the attribute and will