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

Query with a string "01" will fail not considering 0 before 1 as whole string. #540

Open
richard457 opened this issue Feb 14, 2025 · 8 comments

Comments

@richard457
Copy link

brick.Where('name').isNot("01")

tshedor added a commit that referenced this issue Feb 18, 2025
@tshedor
Copy link
Collaborator

tshedor commented Feb 18, 2025

@richard457 can you please take a look at f0bde2a ? This test case succeeds. Does this represent your problem?

@richard457
Copy link
Author

@tshedor yes, it represents my problem. Thank you very much.

@tshedor
Copy link
Collaborator

tshedor commented Feb 21, 2025

@richard457 ok, but this test passes, so is your problem solved?

@richard457
Copy link
Author

richard457 commented Feb 21, 2025

May you kindly guide me on how to use this change? I have checked on pub.dev and there is no new update.

@tshedor
Copy link
Collaborator

tshedor commented Feb 21, 2025

There is no change, it's just a test case to validate that the SQL query is being generated as expected

@richard457
Copy link
Author

I double-checked unfortunately it does not work on my end, maybe test is faulty.

@tshedor
Copy link
Collaborator

tshedor commented Feb 22, 2025

You ran the test locally? Is there another way that you can prove the generated SQL is different from the test case?

@tshedor
Copy link
Collaborator

tshedor commented Feb 22, 2025

@richard457 the test passes in CI, so if the test matches your use case, I think there's something else going on in your app OR there needs to be a different SQLite operator.

I would try running SQLite queries locally against your DB and finding the one that works and reporting it back here

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

No branches or pull requests

2 participants