diff options
| author | Adam Johnson <me@adamj.eu> | 2020-05-06 05:35:26 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-06 06:36:16 +0200 |
| commit | cdf320dfb232fe5a22c9354acbd23477e31aabc9 (patch) | |
| tree | fa0ead2e916bd57106cd501971221af27b39f1d8 /django | |
| parent | fdd5eb4309535bf49b3138e0954c6da553c1adef (diff) | |
[3.0.x] Fixed a/an typos in "SQL" usage.
Backport of 1c2c6f1b51a540bddc7ae95f4d1213688411ca44 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/base/operations.py | 2 | ||||
| -rw-r--r-- | django/db/backends/utils.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py index 07ab32d544..7b970dab61 100644 --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -395,7 +395,7 @@ class BaseDatabaseOperations: to tables with foreign keys pointing the tables being truncated. PostgreSQL requires a cascade even if these tables are empty. """ - raise NotImplementedError('subclasses of BaseDatabaseOperations must provide a sql_flush() method') + raise NotImplementedError('subclasses of BaseDatabaseOperations must provide an sql_flush() method') def execute_sql_flush(self, using, sql_list): """Execute a list of SQL statements to flush the database.""" diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py index 2416a458ba..57f8fcce03 100644 --- a/django/db/backends/utils.py +++ b/django/db/backends/utils.py @@ -184,7 +184,7 @@ def typecast_timestamp(s): # does NOT store time zone information def split_identifier(identifier): """ - Split a SQL identifier into a two element tuple of (namespace, name). + Split an SQL identifier into a two element tuple of (namespace, name). The identifier could be a table, column, or sequence name might be prefixed by a namespace. @@ -198,7 +198,7 @@ def split_identifier(identifier): def truncate_name(identifier, length=None, hash_len=4): """ - Shorten a SQL identifier to a repeatable mangled version with the given + Shorten an SQL identifier to a repeatable mangled version with the given length. If a quote stripped name contains a namespace, e.g. USERNAME"."TABLE, |
