Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/android/io/sqlc/SQLiteAndroidDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Locale;

import org.apache.cordova.CallbackContext;

Expand Down Expand Up @@ -540,7 +541,7 @@ static QueryType getQueryType(String query) {
// (needed for SQLCipher version)
if (first.length() == 0) throw new RuntimeException("query not found");

return QueryType.valueOf(first.toLowerCase());
return QueryType.valueOf(first.toLowerCase(Locale.ENGLISH));
} catch (IllegalArgumentException ignore) {
// unknown verb (NOT blank)
return QueryType.other;
Expand Down