express-admin icon indicating copy to clipboard operation
express-admin copied to clipboard

Incorrect query is built when primary key is not integer

Open piyushsf opened this issue 8 years ago • 1 comments

I tried implementing search functionality by adding listview by following link: https://github.com/simov/express-admin-examples/blob/master/config/mysql/settings.json#L145-L156

But, the query build is incorrect by the framework as it does not add ""(quotes) over the value of primary key. for example, in the where condition of query I get sender_id=o45d45fe445erwt45 without quotes. e I I am not using integer type for primary key but varchar(32). I tried fixing it but not sure which file is relevant. Any help would be appreciated.

piyushsf avatar Jul 15 '16 06:07 piyushsf

Hi, i'm experiencing this too.

Any change to get this bug fixed?

Thanks

stanzahk avatar Mar 13 '18 08:03 stanzahk