Browse Source

Merge pull request #1345 from mertmit/pg-uppercase-formula

fix: uppercase formula column names on postgresql
pull/1346/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
52a5ec8069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/lib/dataMapper/lib/sql/formulaQueryBuilderFromString.ts

2
packages/nocodb/src/lib/dataMapper/lib/sql/formulaQueryBuilderFromString.ts

@ -14,7 +14,7 @@ export default function formulaQueryBuilder(
aliasToColumn = {} aliasToColumn = {}
) { ) {
const fn = (pt, a?, prevBinaryOp?) => { const fn = (pt, a?, prevBinaryOp?) => {
const colAlias = a ? ` as ${a}` : ''; const colAlias = a ? ` as "${a}"` : '';
if (pt.type === 'CallExpression') { if (pt.type === 'CallExpression') {
switch (pt.callee.name) { switch (pt.callee.name) {
case 'ADD': case 'ADD':

Loading…
Cancel
Save