@capacitor-community/sqlite 5.2.4 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,9 +136,9 @@ public class UtilsSQLStatement {
|
|
|
136
136
|
Set<String> keywords = new HashSet<>(Arrays.asList("AND", "OR", "IN", "VALUES", "LIKE", "BETWEEN", "NOT"));
|
|
137
137
|
|
|
138
138
|
Pattern pattern = Pattern.compile(
|
|
139
|
-
|
|
139
|
+
"\\b[a-zA-Z]\\w*\\b(?=\\s*(?:<=?|>=?|<>?|=|AND|OR|BETWEEN|NOT|IN|LIKE))|" +
|
|
140
140
|
"\\b[a-zA-Z]\\w*\\b\\s+BETWEEN\\s+'[^']+'\\s+AND\\s+'[^']+'|" +
|
|
141
|
-
"\\(([^)]+)\\)\\s+IN\\s+\\(VALUES"
|
|
141
|
+
"\\(([^)]+)\\)\\s+IN\\s+\\(\\s*VALUES\\s*\\("
|
|
142
142
|
);
|
|
143
143
|
Matcher matcher = pattern.matcher(whereClause);
|
|
144
144
|
List<String> columns = new ArrayList<>();
|