Hi, 

 

For developement i've used sqlite and now i want to transfer to mysql. 

The transfer itself worked fine but now a couple of queries don't work
anymore.

 

Example:

 

Buchung.objects.filter(Mitarbeiter = request.user.id,
Datum__startswith=str(tag).split('-')[0])

 

"tag" looks like 2011-04-20.

So I only want to get objects where "Datum" (Date) starts with 2011.
"Datum" looks just like "tag".

This worked fine with sqlite but now Im getting this error:

 

Incorrect date value: '2011%' for column 'Datum' at row 1

 

Does anyone know how to overcome this ?!

 

Kind regards


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT Developer 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 





-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to