I try to extract values from a Postgresql 12 DB (to populate another pg table) by matching a feature attribute.
"pk_numart" (column)
"editor"."articles" (schema.table)
"codarticle" (column)
The query :
SELECT "pk_numart" FROM "editor"."articles" WHERE "codarticle" = @Value(Mesure)
Then I get the following error :
Executing custom data query: 'SELECT "pk_numart" FROM "editor"."articles" WHERE "codarticle" = 13.E'
Error executing SQL command ('declare "editor_custom_query_crsr" cursor for SELECT "pk_numart" FROM "editor"."articles" WHERE "codarticle" = 13.E'): 'ERREUR: erreur de syntaxe sur ou près de « E »
LINE 1: ...k_numart" FROM "editor"."articles" WHERE "codarticle" = 13.E
Seems that the point causes the query to fail. I've tried several combinations, with or without hyphen before query or delimiter, but still no luck.
Thanks already for any help.
Best answer by itay
View original