I'm not Database Admin and I am getting some help with the SQL queries, but I'm updating a postgres database from values in a google spreadsheet. The values are stored as text in the spreadsheet and postgres but I'm having to use the "quote_literal" in the SQL below otherwise I get a text error when trying to write to the postgress database.
The issue is that it does still fail when I use the kind of text in the google doc illustrated in this nice cartoon.
Is there a transformer I need to use get FME/Postgres to treat it correctly or is this just a bug in the way FME is talking to Postgres?
I'm using the Google Spreadsheet Reader and the SQL Executer to do the work.
UPDATE function_program_data_function_structure
SET text_data = quote_literal('@Value(fs_10_10_10_10)')
WHERE level_id=@Value(id) AND flag_no='10' AND group_no='10' AND group_element_no='10' AND field_no='10'