Re: django-firebird test expressions

2018-04-17 Thread Maximiliano Robaina
El martes, 17 de abril de 2018, 9:11:23 (UTC-3), Josh Smeaton escribió: > > Have you looked into using Cast for this particular query to see if it > passes? > > https://docs.djangoproject.com/en/2.0/ref/models/database-functions/#cast > > Cast(RawSQL('%s', ['value']), CharField(max_length=10) ?

Re: django-firebird test expressions

2018-04-17 Thread Josh Smeaton
Have you looked into using Cast for this particular query to see if it passes? https://docs.djangoproject.com/en/2.0/ref/models/database-functions/#cast Cast(RawSQL('%s', ['value']), CharField(max_length=10) ? If that worked, then perhaps you could find a clever way to wrap problem

Re: django-firebird test expressions

2018-04-17 Thread Maximiliano Robaina
Hi Shai, Thank for the tip El martes, 17 de abril de 2018, 3:01:30 (UTC-3), Shai Berger escribió: > > Hi Maximiliano, > > On Sat, 14 Apr 2018 19:25:48 -0700 (PDT) > Maximiliano Robaina wrote: > > > Hi, > > > > Testing expressions test app, the query generated into >

Re: django-firebird test expressions

2018-04-17 Thread Shai Berger
Hi Maximiliano, On Sat, 14 Apr 2018 19:25:48 -0700 (PDT) Maximiliano Robaina wrote: > Hi, > > Testing expressions test app, the query generated into > BasicExpressionsTests.test_annotate_values_filter method: > > companies = Company.objects.annotate( > foo=RawSQL('%s',