So I have a function in views: ################################# def getEntries(user): """Returns unique entries and page views for each of last 30 day """ cursor = connection.cursor() query = cursor.execute('SELECT COUNT(DISTINCT(ip)) AS uniqs, COUNT(ip) AS views, date FROM pw_logs GROUP BY date LIMIT 30') return query.fetchall() ################################# The query in phpMyAdmin returns the correct data. In Django-SVN cursor.execute returns LONG - a number. I used SQLite yesterday with simillar query (and others) and it worked. Now what I se on MySQL all or almost all my cursor.execute give LONGs. What's going on?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---