Yes, and it gets worse. I changed my query to be: ticks = list(StockTicker.objects.filter(exchange = 1) \ .extra(where = ["symbol = '@Gold' AND moment >= '%s' AND moment < '%s' " % (postgresDate(start), postgresDate(end))]) \ .order_by('moment'))
(which works directly in psql) But the single quotes are being escaped to \' blah \' which again causes the query to fail. Is there a way to turn the escaping off? I may have to go down to raw sql for the whole query. -Sandy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---