Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.
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 @@ -23,6 +23,7 @@
import java.lang.Number;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Locale;

import org.apache.cordova.CallbackContext;

Expand Down Expand Up @@ -494,7 +495,7 @@ static QueryType getQueryType(String query) {
Matcher matcher = FIRST_WORD.matcher(query);
if (matcher.find()) {
try {
return QueryType.valueOf(matcher.group(1).toLowerCase());
return QueryType.valueOf(matcher.group(1).toLowerCase(Locale.ENGLISH));
} catch (IllegalArgumentException ignore) {
// unknown verb
}
Expand Down