Skip to content

Commit

Permalink
Fixed #42 -- OneToOneField now works with SQL generation
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 17, 2005
1 parent 729fc54 commit 6ae4def
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions django/core/db/backends/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def get_last_insert_id(cursor, table_name, pk_name):
'IPAddressField': 'char(15)',
'ManyToManyField': None,
'NullBooleanField': 'bool',
'OneToOneField': 'integer',
'PhoneNumberField': 'varchar(20)',
'PositiveIntegerField': 'integer UNSIGNED',
'PositiveSmallIntegerField': 'smallint UNSIGNED',
Expand Down
1 change: 1 addition & 0 deletions django/core/db/backends/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def get_last_insert_id(cursor, table_name, pk_name):
'IPAddressField': 'inet',
'ManyToManyField': None,
'NullBooleanField': 'boolean',
'OneToOneField': 'integer',
'PhoneNumberField': 'varchar(20)',
'PositiveIntegerField': 'integer CHECK (%(name)s >= 0)',
'PositiveSmallIntegerField': 'smallint CHECK (%(name)s >= 0)',
Expand Down

0 comments on commit 6ae4def

Please sign in to comment.