Browse Source

fix(nocodb): include second in MSSQL DATEADD

pull/5678/head
Wing-Kam Wong 2 years ago
parent
commit
3ff04fcea0
  1. 2
      packages/nocodb/src/db/functionMappings/mssql.ts

2
packages/nocodb/src/db/functionMappings/mssql.ts

@ -130,7 +130,7 @@ const mssql = {
)}, )},
${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${ ${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${
(await fn(pt.arguments[0])).builder (await fn(pt.arguments[0])).builder
}), 'yyyy-MM-dd HH:mm') }), 'yyyy-MM-dd HH:mm:ss')
ELSE ELSE
FORMAT(DATEADD(${String((await fn(pt.arguments[2])).builder).replace( FORMAT(DATEADD(${String((await fn(pt.arguments[2])).builder).replace(
/["']/g, /["']/g,

Loading…
Cancel
Save