Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that pattern matching with LIKE operator is case insensitive for SQLite and MySQL #239

Open
shaileshaanand opened this issue Mar 3, 2024 · 0 comments

Comments

@shaileshaanand
Copy link

The Drizzle ORM docs specify that LIKE operator is "case sensitive" for SQLite, MySQL and PostgreSQL databases at https://orm.drizzle.team/docs/operators#like

But actually the LIKE operator is only case sensitive for PostgreSQL[1] and is case insensitive for SQLite[2] and MySQL[3] databases.

I have tested SQLite with bun-sqlite driver and can confirm that the LIKE filter returns case insensitive results for me.

File to be edited:

Value is like other value, case sensitive

[1] https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-LIKE
[2] https://www.sqlite.org/lang_expr.html
[3] https://dev.mysql.com/doc/refman/8.0/en/pattern-matching.html

Screenshots:

PostgresQL:
Screenshot from 2024-03-03 22-28-34

SQLite:
Screenshot from 2024-03-03 22-28-04

MySQL:
Screenshot from 2024-03-03 22-27-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant