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) ?
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
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
>
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',