]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix typo, add missing command to unittest pg docker example
authorFederico Caselli <cfederico87@gmail.com>
Wed, 18 Jan 2023 21:28:34 +0000 (22:28 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 18 Jan 2023 21:28:34 +0000 (22:28 +0100)
Change-Id: Ic640ccf7459c39cb4f6ab8dcfb3efed1a1dbb55f

README.unittests.rst
doc/build/orm/queryguide/columns.rst

index 23f7292ccd92a486135dbec8aaa2eb95c3c49f1f..9d63d238fb4372ed9b89caa07df68ba8bed6f441 100644 (file)
@@ -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
 
index e8098cda11eb8d6bd38c6c746c1b53619487478f..255c1f9028b26cbb20c63a648d5b70e84f23c4e4 100644 (file)
@@ -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