diff options
Diffstat (limited to 'django/core/db/backends/sqlite3.py')
| -rw-r--r-- | django/core/db/backends/sqlite3.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/django/core/db/backends/sqlite3.py b/django/core/db/backends/sqlite3.py index 3fde8c77e1..60ffd37620 100644 --- a/django/core/db/backends/sqlite3.py +++ b/django/core/db/backends/sqlite3.py @@ -55,6 +55,11 @@ class DatabaseWrapper: self.connection.close() self.connection = None + def quote_name(self, name): + if name.startswith('"') and name.endswith('"'): + return name # Quoting once is enough. + return '"%s"' % name + class SQLiteCursorWrapper(Database.Cursor): """ Django uses "format" style placeholders, but pysqlite2 uses "qmark" style. @@ -124,11 +129,6 @@ def get_table_list(cursor): def get_relations(cursor, table_name): raise NotImplementedError -def quote_name(name): - if name.startswith('"') and name.endswith('"'): - return name # Quoting once is enough. - return '"%s"' % name - # Operators and fields ######################################################## OPERATOR_MAPPING = { |
