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. 14
      packages/nocodb/src/services/columns.service.ts

14
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(
column.column_name, baseModel.dbDriver.raw('SELECT DISTINCT ?? FROM ??', [
baseModel.getTnPath(table.table_name), column.column_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