On Mon, Mar 1, 2010 at 5:17 PM, Ferran Fontcuberta <[email protected]> wrote:
> But it seems to fail when i'm trying to get a query for "%2009"; instead of
> getting it, i get a void result. But it works if i use "2009%'; which is
> pointing me to think it is a locale problem.
>
> How can i solve it?
WHERE date_part('day' expira) = $day
WHERE date_part('month' expira) = $month
WHERE date_part('year' expira) = $year
Use integer in the above expression, not string, and is also locale-independent.
--
Branko Vukelić
http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.