Skip to content

Commit

Permalink
Fixing issue #3 regarding failure casting PKs w/mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Oct 5, 2010
1 parent fe4cc19 commit 4d6d5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generic_aggregation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def gfk_expression(qs_model, gfk_field):

if pk_field_type == 'serial':
pk_field_type = 'integer'
elif pk_field_type.lower() == 'integer auto_increment':
pk_field_type = 'UNSIGNED'

if pk_field_type != gfk_field_type:
# cast the gfk to the pk type
Expand Down

0 comments on commit 4d6d5cd

Please sign in to comment.