Michal,

Actually, your syntax didn't quite work. It threw a couple of warnings and 
seemed to match all records in the database. But you got me on the right 
track. This syntax does work properly:

select ... where word like concat('%%', %s, '%%')


Thanks for getting me pointed in the right direction.

-- Art Z.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a9b37167-bc7a-460e-a32c-8b6dde5b08ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to