Skip to content

Commit

Permalink
Merge pull request #1030 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
rafecolton authored May 25, 2021
2 parents 163cfba + e9822b6 commit 8349efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/DB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool BedrockDBCommand::peek(SQLite& db) {
int preChangeCount = db.getChangeCount();
if (!db.read(query, result)) {
if (shouldRequireWhere &&
(SContains(upperQuery, "UPDATE ") || SContains(upperQuery, "DELETE ")) &&
(SStartsWith(upperQuery, "UPDATE") || SStartsWith(upperQuery, "DELETE")) &&
!SContains(upperQuery, " WHERE ")) {
SALERT("Query aborted, it has no 'where' clause: '" << query << "'");
STHROW("502 Query aborted");
Expand Down

0 comments on commit 8349efd

Please sign in to comment.