OCLOperators sqlLikeCaseInsensitive
No edit summary
No edit summary
Line 5: Line 5:
'''''Note!'''''  
'''''Note!'''''  


sqlLike ''might'' ignore case in ps search - this depends on your database server and it's settings.  
sqlLike ''might'' ignore case in ps search - this depends on your database server and its settings.  


For example, the Turnkey built in database '''Sql Server Compact''', does '''not''' ignore case. If you want easier search, use this operator.
For example, the Turnkey built-in database '''Sql Server Compact''' does '''not''' ignore case. If you want an easier search, use this operator:
  Person.allinstances->select(a|a.Name.sqlLikeCaseInsensitive('%'+vSeekParam+'%'))
  Person.allinstances->select(a|a.Name.sqlLikeCaseInsensitive('%'+vSeekParam+'%'))
[[File:2018-07-22 11h09 10.png|none|thumb]]
[[File:2018-07-22 11h09 10.png|none|thumb]]
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 06:56, 6 March 2023

When you want to match on strings - or part of strings - but ignoring case

It works just like sqlLike but ignores case.

Note!

sqlLike might ignore case in ps search - this depends on your database server and its settings.

For example, the Turnkey built-in database Sql Server Compact does not ignore case. If you want an easier search, use this operator:

Person.allinstances->select(a|a.Name.sqlLikeCaseInsensitive('%'+vSeekParam+'%'))
2018-07-22 11h09 10.png
This page was edited 96 days ago on 02/10/2024. What links here