mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
022b9164ab
Summary: as you can test the query like this: ``` select * from demo WHERE `name` IN () ``` is fine for sqlite but **invalid syntax** in MySql (empty list of value) the error will be similar to this: ``` You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 10000' at line 1; 'select * from phases WHERE repo_id IN () LIMIT 10000' ``` So, such errors are usually shoot in production. It is better to have the empty check right before calling queries with lists Reviewed By: lukaspiatkowski Differential Revision: D13704726 fbshipit-source-id: a9fb3a2e21e88b3af14f57917c2004454eb42531 |
||
---|---|---|
.. | ||
if | ||
schemas | ||
src | ||
test |