[Modeling-users] fetch qualifier problem
Status: Abandoned
Brought to you by:
sbigaret
|
From: Mario R. <ma...@ru...> - 2003-08-09 12:35:19
|
Hello,
I have encountered this problem: if i set a string property on an
entity,
and this contains a "special" character such as _ or @, then fetch
does the following:
ec.EditingContext()
aprop = 'a_string' # contains a special characters, e.g. _ @
e = AnEntity()
e.setAprop(aprop)
ec.insert(e)
ec.saveChanges()
ec.fetch('AnEntity',qualifier='aprop == "%s"' %(aprop) ) # works fine
ec.fetch('AnEntity',qualifier='aprop ilike "*%s*"' %(aprop) ) # nada
i.e. if i use the str value for testing equality, the fetch results are
ok,
but if i use it in ilike, then the fetch result list is zero length.
Is there something i miss here, or is this a bug?
Cheers, mario
|