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

Boris Kolpackov boris at codesynthesis.com
Fri Nov 14 06:00:55 EST 2014


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