Browse Source

fix(nocodb): MSSQL DATEADD formula

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

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

@ -136,9 +136,9 @@ const mssql = {
/["']/g, /["']/g,
'', '',
)}, )},
${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${fn( ${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${
pt.arguments[0], (await fn(pt.arguments[0])).builder
)}), 'yyyy-MM-dd') }), 'yyyy-MM-dd')
END${colAlias}`, END${colAlias}`,
), ),
}; };

Loading…
Cancel
Save