[odb-users] How do I make a lookup (database->load<classname>(std::string_identifier)) case insensetive?

Rafal Gm grasmanek94 at gmail.com
Fri Nov 14 06:16:26 EST 2014


alright, in that case I will just make the index id name alway ::tolower
and add a DisplayName column :)

2014-11-14 12:00 GMT+01:00 Boris Kolpackov <boris at codesynthesis.com>:

> Hi Rafal,
>
> Rafal Gm <grasmanek94 at gmail.com> writes:
>
> > how do I make the load<user>("nicKnAmE"); case insensetive?
>
> You will need to use query() and come up with a way to compare the
> strings ignoring case, which depends on the database that you use.
> Just google for the way to do it in your database, there are usually
> a number of solutions on stackoverflow.
>
> Boris
>


More information about the odb-users mailing list