diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-06-18 19:00:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-06-18 19:00:16 +0000 |
commit | f7daad21ef66c29aecfbdb2b967641d0adad8779 (patch) | |
tree | 4911f097382da413b0caf298594ad71080bc0cb0 /lib/sqlalchemy/sql | |
parent | 84183b19795a8ccdcbf4adbd9951ff3d60d161fe (diff) | |
parent | 3bde1eae31212b5bc2c6652dca52f70fb79d5950 (diff) | |
download | sqlalchemy-f7daad21ef66c29aecfbdb2b967641d0adad8779.tar.gz |
Merge "Normalize postgresql docs links to point to current" into main
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r-- | lib/sqlalchemy/sql/schema.py | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/sql/sqltypes.py | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 2414d9235..dd592d8f0 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -4174,8 +4174,8 @@ class ForeignKeyConstraint(ColumnCollectionConstraint): ) else: # e.g. FOREIGN KEY (a) REFERENCES r (b, c) - # paraphrasing https://www.postgresql.org/docs/9.2/static/\ - # ddl-constraints.html + # paraphrasing + # https://www.postgresql.org/docs/current/static/ddl-constraints.html raise exc.ArgumentError( "ForeignKeyConstraint number " "of constrained columns must match the number of " diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index 8d796566d..6adc6ca77 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -788,8 +788,8 @@ class DateTime( @util.memoized_property def _expression_adaptations(self): - # Based on https://www.postgresql.org/docs/current/\ - # static/functions-datetime.html. + # Based on + # https://www.postgresql.org/docs/current/static/functions-datetime.html. return { operators.add: {Interval: self.__class__}, @@ -815,8 +815,8 @@ class Date(_RenderISO8601NoT, HasExpressionLookup, TypeEngine[dt.date]): @util.memoized_property def _expression_adaptations(self): - # Based on https://www.postgresql.org/docs/current/\ - # static/functions-datetime.html. + # Based on + # https://www.postgresql.org/docs/current/static/functions-datetime.html. return { operators.add: { @@ -863,8 +863,8 @@ class Time(_RenderISO8601NoT, HasExpressionLookup, TypeEngine[dt.time]): @util.memoized_property def _expression_adaptations(self): - # Based on https://www.postgresql.org/docs/current/\ - # static/functions-datetime.html. + # Based on + # https://www.postgresql.org/docs/current/static/functions-datetime.html. return { operators.add: {Date: DateTime, Interval: self.__class__}, @@ -1927,8 +1927,8 @@ class Boolean(SchemaType, Emulated, TypeEngine[bool]): class _AbstractInterval(HasExpressionLookup, TypeEngine[dt.timedelta]): @util.memoized_property def _expression_adaptations(self): - # Based on https://www.postgresql.org/docs/current/\ - # static/functions-datetime.html. + # Based on + # https://www.postgresql.org/docs/current/static/functions-datetime.html. return { operators.add: { |