We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7c2c6 commit 21a68e9Copy full SHA for 21a68e9
src/data/datatypes.js
@@ -1023,6 +1023,9 @@ const postgresTypesBase = {
1023
"today",
1024
"tomorrow",
1025
"yesterday",
1026
+ "current_date",
1027
+ "current_timestamp",
1028
+ "current_time",
1029
];
1030
return (
1031
/^\d{4}-\d{2}-\d{2}$/.test(field.default) ||
src/utils/utils.js
@@ -33,7 +33,16 @@ export function strHasQuotes(str) {
33
);
34
}
35
36
-const keywords = ["CURRENT_TIMESTAMP", "NULL"];
+const keywords = [
37
+ "NULL",
38
+ "TRUE",
39
+ "FALSE",
40
+ "CURRENT_DATE",
41
+ "CURRENT_TIME",
42
+ "CURRENT_TIMESTAMP",
43
+ "LOCALTIME",
44
+ "LOCALTIMESTAMP"
45
+];
46
47
export function isKeyword(str) {
48
return keywords.includes(str.toUpperCase());
0 commit comments