Browse Source

fix(nocodb): include second in MSSQL DATEADD

pull/5678/head
Wing-Kam Wong 1 year 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}, ${
(await fn(pt.arguments[0])).builder
}), 'yyyy-MM-dd HH:mm')
}), 'yyyy-MM-dd HH:mm:ss')
ELSE
FORMAT(DATEADD(${String((await fn(pt.arguments[2])).builder).replace(
/["']/g,

Loading…
Cancel
Save