|
|
@ -36,7 +36,7 @@ const mysql2 = { |
|
|
|
MID: 'SUBSTR', |
|
|
|
MID: 'SUBSTR', |
|
|
|
FLOAT: (args: MapFnArgs) => { |
|
|
|
FLOAT: (args: MapFnArgs) => { |
|
|
|
return args.knex |
|
|
|
return args.knex |
|
|
|
.raw(`CAST(${args.fn(args.pt.arguments[0])} as DOUBLE)${args.colAlias}`) |
|
|
|
.raw(`CAST(CAST(${args.fn(args.pt.arguments[0])} as CHAR) AS DOUBLE)${args.colAlias}`) |
|
|
|
.wrap('(', ')'); |
|
|
|
.wrap('(', ')'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
DATEADD: ({ fn, knex, pt, colAlias }: MapFnArgs) => { |
|
|
|
DATEADD: ({ fn, knex, pt, colAlias }: MapFnArgs) => { |
|
|
|