Closed ekarlso closed 12 years ago
Is there a possibility to add support for case insensitive searching in the ORM ?
Oracle uses SELECT * FROM
Or you can do WHERE LOWER() ....
Or do: http://askanantha.blogspot.com/2007/07/making-oracle-case-insensitive.html
I believe you are looking for the following:
$results = DB_SQL::select('default')->from('table')->where(DB_SQL::expr("UPPER('value')"), '=', 'text')->query();
or
$results = DB_ORM::select('model')->where(DB_ORM::expr("UPPER('value')"), '=', 'text')->query();
Is there a possibility to add support for case insensitive searching in the ORM ?
Oracle uses SELECT * FROM
Or you can do WHERE LOWER() ....
Or do: http://askanantha.blogspot.com/2007/07/making-oracle-case-insensitive.html
I believe you are looking for the following:
$results = DB_SQL::select('default')->from('table')->where(DB_SQL::expr("UPPER('value')"), '=', 'text')->query();
or
$results = DB_ORM::select('model')->where(DB_ORM::expr("UPPER('value')"), '=', 'text')->query();