|
@@ -828,7 +828,10 @@ const DATE_FUNCTIONS = {
|
|
|
},
|
|
},
|
|
|
trunc: {
|
|
trunc: {
|
|
|
returnTypes: ['STRING'],
|
|
returnTypes: ['STRING'],
|
|
|
- arguments: [[{ type: 'STRING' }], [{ type: 'STRING' }]],
|
|
|
|
|
|
|
+ arguments: [
|
|
|
|
|
+ [{ type: 'STRING' }],
|
|
|
|
|
+ [{ type: 'STRING', keywords: ["'MONTH'", "'MON'", "'MM'", "'YEAR'", "'YYYY'", "'YY'"] }]
|
|
|
|
|
+ ],
|
|
|
signature: 'trunc(STRING date, STRING format)',
|
|
signature: 'trunc(STRING date, STRING format)',
|
|
|
draggable: 'trunc()',
|
|
draggable: 'trunc()',
|
|
|
description:
|
|
description:
|
|
@@ -979,7 +982,22 @@ const STRING_FUNCTIONS = {
|
|
|
},
|
|
},
|
|
|
decode: {
|
|
decode: {
|
|
|
returnTypes: ['STRING'],
|
|
returnTypes: ['STRING'],
|
|
|
- arguments: [[{ type: 'BINARY' }], [{ type: 'STRING' }]],
|
|
|
|
|
|
|
+ arguments: [
|
|
|
|
|
+ [{ type: 'BINARY' }],
|
|
|
|
|
+ [
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'STRING',
|
|
|
|
|
+ keywords: [
|
|
|
|
|
+ "'US-ASCII'",
|
|
|
|
|
+ "'ISO-8859-1'",
|
|
|
|
|
+ "'UTF-8'",
|
|
|
|
|
+ "'UTF-16BE'",
|
|
|
|
|
+ "'UTF-16LE'",
|
|
|
|
|
+ "'UTF-16'"
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ ],
|
|
|
signature: 'decode(BINARY bin, STRING charset)',
|
|
signature: 'decode(BINARY bin, STRING charset)',
|
|
|
draggable: 'decode()',
|
|
draggable: 'decode()',
|
|
|
description:
|
|
description:
|
|
@@ -995,7 +1013,22 @@ const STRING_FUNCTIONS = {
|
|
|
},
|
|
},
|
|
|
encode: {
|
|
encode: {
|
|
|
returnTypes: ['BINARY'],
|
|
returnTypes: ['BINARY'],
|
|
|
- arguments: [[{ type: 'STRING' }], [{ type: 'STRING' }]],
|
|
|
|
|
|
|
+ arguments: [
|
|
|
|
|
+ [{ type: 'STRING' }],
|
|
|
|
|
+ [
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'STRING',
|
|
|
|
|
+ keywords: [
|
|
|
|
|
+ "'US-ASCII'",
|
|
|
|
|
+ "'ISO-8859-1'",
|
|
|
|
|
+ "'UTF-8'",
|
|
|
|
|
+ "'UTF-16BE'",
|
|
|
|
|
+ "'UTF-16LE'",
|
|
|
|
|
+ "'UTF-16'"
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ ],
|
|
|
signature: 'encode(STRING src, STRING charset)',
|
|
signature: 'encode(STRING src, STRING charset)',
|
|
|
draggable: 'encode()',
|
|
draggable: 'encode()',
|
|
|
description:
|
|
description:
|