diff options
author | Dong Ma <winterma.dong@gmail.com> | 2017-07-01 19:45:52 +0800 |
---|---|---|
committer | Dong Ma <winterma.dong@gmail.com> | 2017-07-03 11:28:14 +0000 |
commit | 0a035933c813631f0c523bcc3b603dbd6ebf031e (patch) | |
tree | 88913cebef0ed26ad0fb6cddc411831a2875057e /oslo_db | |
parent | bd35a6e841550cb01c4bbf94979805369474db54 (diff) | |
download | oslo-db-0a035933c813631f0c523bcc3b603dbd6ebf031e.tar.gz |
turn on warning-is-error in doc build
Change-Id: I0b64c644f40a2da3242274194d1a5d2858813c25
Diffstat (limited to 'oslo_db')
-rw-r--r-- | oslo_db/sqlalchemy/session.py | 4 | ||||
-rw-r--r-- | oslo_db/sqlalchemy/test_migrations.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/oslo_db/sqlalchemy/session.py b/oslo_db/sqlalchemy/session.py index bb3616f..5e37363 100644 --- a/oslo_db/sqlalchemy/session.py +++ b/oslo_db/sqlalchemy/session.py @@ -90,8 +90,8 @@ Recommended ways to use sessions within this framework: .. code-block:: sql - UPDATE bar SET bar = ${newbar} - WHERE id=(SELECT bar_id FROM foo WHERE id = ${foo_id} LIMIT 1); + UPDATE bar SET bar = '${newbar}' + WHERE id=(SELECT bar_id FROM foo WHERE id = '${foo_id}' LIMIT 1); .. note:: `create_duplicate_foo` is a trivially simple example of catching an exception while using a savepoint. Here we create two duplicate diff --git a/oslo_db/sqlalchemy/test_migrations.py b/oslo_db/sqlalchemy/test_migrations.py index 09e61f8..d650025 100644 --- a/oslo_db/sqlalchemy/test_migrations.py +++ b/oslo_db/sqlalchemy/test_migrations.py @@ -45,7 +45,7 @@ class WalkVersionsMixin(object): abstract class mixin. `INIT_VERSION`, `REPOSITORY` and `migration_api` attributes must be implemented in subclasses. - .. _auxiliary-dynamic-methods: Auxiliary Methods + .. _auxiliary-dynamic-methods: Auxiliary Methods: @@ -214,7 +214,7 @@ class WalkVersionsMixin(object): :type version: str :keyword with_data: Whether to verify the absence of changes from migration(s) being downgraded, see - :ref:`auxiliary-dynamic-methods <Auxiliary Methods>`. + :ref:`Auxiliary Methods <auxiliary-dynamic-methods>`. :type with_data: Bool """ @@ -246,7 +246,7 @@ class WalkVersionsMixin(object): :param version: id of revision to upgrade. :type version: str :keyword with_data: Whether to verify the applied changes with data, - see :ref:`auxiliary-dynamic-methods <Auxiliary Methods>`. + see :ref:`Auxiliary Methods <auxiliary-dynamic-methods>`. :type with_data: Bool """ # NOTE(sdague): try block is here because it's impossible to debug |