1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed a/an typos in "SQL" usage.

This commit is contained in:
Adam Johnson
2020-05-06 05:35:26 +01:00
committed by GitHub
parent aff7a58aef
commit 1c2c6f1b51
7 changed files with 13 additions and 13 deletions

View File

@@ -398,7 +398,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, sql_list):
"""Execute a list of SQL statements to flush the database."""

View File

@@ -181,7 +181,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.
@@ -195,7 +195,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,