Browse Source

fix: text to select conversion (#8536)

Co-authored-by: mertmit <mertmit99@gmail.com>
pull/8540/head
Raju Udava 6 months ago committed by GitHub
parent
commit
ad6987377f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      packages/nocodb/src/services/columns.service.ts

10
packages/nocodb/src/services/columns.service.ts

@ -452,10 +452,16 @@ export class ColumnsService {
}), }),
); );
const data = await sqlClient.raw('SELECT DISTINCT ?? FROM ??', [ const data = await baseModel.execAndParse(
baseModel.dbDriver.raw('SELECT DISTINCT ?? FROM ??', [
column.column_name, column.column_name,
baseModel.getTnPath(table.table_name), baseModel.getTnPath(table.table_name),
]); ]),
null,
{
raw: true,
},
);
if (data.length) { if (data.length) {
const existingOptions = colBody.colOptions.options.map( const existingOptions = colBody.colOptions.options.map(

Loading…
Cancel
Save