Browse Source

fix(nocodb): MSSQL DATEADD formula

pull/5678/head
Wing-Kam Wong 1 year 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,
'',
)},
${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${fn(
pt.arguments[0],
)}), 'yyyy-MM-dd')
${dateIN > 0 ? '+' : ''}${(await fn(pt.arguments[1])).builder}, ${
(await fn(pt.arguments[0])).builder
}), 'yyyy-MM-dd')
END${colAlias}`,
),
};

Loading…
Cancel
Save