mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
mysql parser refactor.
This commit is contained in:
@@ -19,10 +19,7 @@ import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import javax.sql.XAConnection;
|
||||
|
||||
@@ -73,4 +70,17 @@ public class PGUtils {
|
||||
|
||||
return words.contains(name_lower);
|
||||
}
|
||||
|
||||
private final static long[] pseudoColumnHashCodes;
|
||||
static {
|
||||
long[] array = {
|
||||
FNVUtils.CURRENT_TIMESTAMP
|
||||
};
|
||||
Arrays.sort(array);
|
||||
pseudoColumnHashCodes = array;
|
||||
}
|
||||
|
||||
public static boolean isPseudoColumn(long hash) {
|
||||
return Arrays.binarySearch(pseudoColumnHashCodes, hash) >= 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user