diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-14 01:44:35 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-14 01:44:35 +0000 |
| commit | f6bf41e59ac032c253e3b4e1b267010c6d456a26 (patch) | |
| tree | a2b7755ee377b3cd99ff301154d9ae9a35991b1c /django/core/db/backends/postgresql.py | |
| parent | 6e40d8c29f2b6ed926cf764f5c9cdce07bc9a069 (diff) | |
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
Diffstat (limited to 'django/core/db/backends/postgresql.py')
| -rw-r--r-- | django/core/db/backends/postgresql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/db/backends/postgresql.py b/django/core/db/backends/postgresql.py index b6d34fc814..1db6fe40c3 100644 --- a/django/core/db/backends/postgresql.py +++ b/django/core/db/backends/postgresql.py @@ -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', |
