Back

Query.equal() is NOT case sensitive. Is this correct?

  • 0
  • Databases
  • Cloud
memoonlite
7 Apr, 2024, 11:07

Hello everyone!

Recently I noticed that Query.equal() ignores the casing of the what is passed to it. For example:

username = "Test"

is returned when any these are used:

Query.equal("username", "test"), Query.equal("username", "Test"), Query.equal("username", "tESt")

I expected Query.equal() to be case sensitive. Does anyone know if Query.equal() is case insensitive by design, or is there is some kind of bug going on?

TL;DR
Developers have noticed that Query.equal() function is not case sensitive, which deviates from the expected behavior. They have raised a query to understand if this is intentional behavior or a bug.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more