From 6104e1e0321af1fb2f043006e31971a0bd28a8c0 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 18 Jan 2023 22:28:34 +0100 Subject: [PATCH] fix typo, add missing command to unittest pg docker example Change-Id: Ic640ccf7459c39cb4f6ab8dcfb3efed1a1dbb55f --- README.unittests.rst | 2 +- doc/build/orm/queryguide/columns.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2