Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing filter on lower-cased columns #560
Comments
This comment has been minimized.
|
We don't have the sql_function!(lower, lower_t, (a: types::VarChar) -> types::VarChar);
try!(table1::table.filter(lower(table1::name).like(query)).load::<Table1>(&conn)); |
sgrif
closed this
Jan 3, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
freiguy1 commentedDec 30, 2016
I'm looking to perform a query similar to
In rust with diesel, I get this close:
Is there a way I can use diesel to compare with LIKE against a lower case version of the columns? Is regex an option? I'd prefer to not have to make another column which is the lower case version of an existing column.
Thanks!