Re: Error creating SQL with string field containing a single quote.

2006-05-06 Thread evenrik
I thought this was created by Django, but on closer inspection it turns out that you are right and it is custom SQL. Thanks for the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Error creating SQL with string field containing a single quote.

2006-05-06 Thread evenrik
Here is the snippet of code where the exception is generated by get_object(). This is in a module level function of a model. sql = { 'manufacturer__iexact':post_data.get('manufacturer', None), 'model__iexact':post_data.get('model', None), 'wattage__exac

Re: Error creating SQL with string field containing a single quote.

2006-05-06 Thread Luke Plant
On Friday 05 May 2006 19:41, evenrik wrote: > Using pre magic removal I got this error: > > Exception Type: ProgrammingError > Exception Value: ERROR: unterminated quoted string at or near > "'F28T8/841 T8 4'' " at character 419 select count(a.id) from > uv2_applications as a inner join