mirror of
https://github.com/django/django.git
synced 2025-10-06 16:50:52 +00:00
Fixed #121 -- Django now quotes all names in SQL queries. Also added unit tests to confirm. Thanks, Robin Munn and Sune.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6e40d8c29f
commit
f6bf41e59a
9 changed files with 295 additions and 116 deletions
|
@ -170,8 +170,8 @@ DATA_TYPES = {
|
|||
'NullBooleanField': 'boolean',
|
||||
'OneToOneField': 'integer',
|
||||
'PhoneNumberField': 'varchar(20)',
|
||||
'PositiveIntegerField': 'integer CHECK (%(name)s >= 0)',
|
||||
'PositiveSmallIntegerField': 'smallint CHECK (%(name)s >= 0)',
|
||||
'PositiveIntegerField': 'integer CHECK (%(column)s >= 0)',
|
||||
'PositiveSmallIntegerField': 'smallint CHECK (%(column)s >= 0)',
|
||||
'SlugField': 'varchar(50)',
|
||||
'SmallIntegerField': 'smallint',
|
||||
'TextField': 'text',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue