Re: Queries returning long instead of int from MySQL

2009-09-29 Thread Karen Tracey
On Tue, Sep 29, 2009 at 8:00 AM, eradman wrote: > > I have been tasked with migrating a Django app from PostgreSQL (using > psycopg2 2.0.7) to MySQL (using mysql-python 1.2.2-05), and have > encountered a problem with custom models definitions that look like > this: > > class CustomIntegerField (

Queries returning long instead of int from MySQL

2009-09-29 Thread eradman
I have been tasked with migrating a Django app from PostgreSQL (using psycopg2 2.0.7) to MySQL (using mysql-python 1.2.2-05), and have encountered a problem with custom models definitions that look like this: class CustomIntegerField (models.IntegerField): def __init__ (self, verbose_name = N