mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser
This commit is contained in:
@@ -20,6 +20,8 @@ import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.alibaba.druid.sql.parser.CharTypes;
|
||||
|
||||
public class JSONParser {
|
||||
|
||||
private String text;
|
||||
@@ -160,7 +162,7 @@ public class JSONParser {
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
if (ch == ' ' || ch == '\r' || ch == '\n' || ch == '\t') {
|
||||
if (CharTypes.isWhitespace(ch)) {
|
||||
nextChar();
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user