You are not logged in.
Pages: 1
Assume the TSQLRecord-derived class has a property called 'FileName'
This query clause:
FileName LIKE "%.%"
As in
db.Retrieve('FileName LIKE "%.%"', [], [True], theRecord)
Will fail (not raising errors but just don't return the correct result).
As a workaround I use 'InStr(FileName, ".")>0' insead, but it's an issue that needs to be fixed, I guess.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Offline
Thanks for the comment, ab, I forgot about that :0
But I guess it's better if mORMot support escaping, for example, '\%' won't be treated as a parameter.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
It would break existing code, so using '%' as parameter is the way to go.
I have specified it now in the documentation, which was not handling this subject.
See https://synopse.info/fossil/info/bc360e800a
Offline
Great! I think it's ok.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Pages: 1