Changes between Initial Version and Version 1 of Ticket #30664


Ignore:
Timestamp:
Jul 27, 2019, 1:11:42 PM (5 years ago)
Author:
Maciej Olko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30664 – Description

    initial v1  
    22
    33I suppose following generated query causes the error:
    4 
     4{{{
    55CREATE TABLE "new__"table_with_quoted_name"" ("obj_id" integer NOT NULL PRIMARY KEY, "obj_num" varchar(20) NULL,  "country_id" integer NOT NULL REFERENCES "countries" ("country_id") DEFERRABLE INITIALLY DEFERRED)
    6 
     6}}}
    77To reproduce table with quoted name should have at least one foreign key.
    88
     
    1111
    1212Traceback:
    13 
     13{{{
    1414Traceback (most recent call last):
    1515  File "…/django/db/backends/utils.py", line 82, in _execute
     
    6060    return Database.Cursor.execute(self, query)
    6161django.db.utils.OperationalError: near "table_with_quoted_name": syntax error
     62}}}
Back to Top