firestation icon indicating copy to clipboard operation
firestation copied to clipboard

AND does not work as intended

Open Gloix opened this issue 6 years ago • 6 comments

If i test the query:

select * from users where email = '[email protected]'

I get 1 record (assuming that email exists) with the email field matching that of the query, and also with another field country='US'. If I extend the query like this:

select * from users where email = '[email protected]' AND country = 'US'

I get zero results.

Gloix avatar Mar 28 '18 21:03 Gloix

Surprised I didn't notice this. Thanks @Gloix .

You can use a lower-case 'and' for now and it should work as intended. I'll have this fixed for the next release.

JoeRoddy avatar Mar 28 '18 21:03 JoeRoddy

Wow I never tested with the lowercase version. Thank you, I'll use that for now.

Gloix avatar Mar 28 '18 22:03 Gloix

Speaking of which, I tested the OR operator as well, with no luck as well. Uppercase and lowercase 😕.

Gloix avatar Mar 28 '18 22:03 Gloix

Right, maybe we should make another issue for that at some point. I have a page with some of the supported/non-supported features here. It's possible it's out of date.

JoeRoddy avatar Mar 29 '18 00:03 JoeRoddy

Oh right, I'm sorry, I didn't see that. Maybe outputting an error in response to a query with missing operators will prevent people from reporting things like that :)

Gloix avatar Mar 29 '18 14:03 Gloix

Great idea @Gloix ! Right now it's just the "Documentation" button in the sidebar, but I doubt many people actually click it. Error handling could definitely use a lot of work in general.

JoeRoddy avatar Mar 29 '18 19:03 JoeRoddy