0

I am trying to update a column:

update t_references
set    reference = 'Stöcker W, et al. Autoimmunity to Pancreatic Juice in Crohn’s Disease. 
    Results of an Autoantibody Screening in Patients With Chronic Inflammatory Bowel Disease. <i>Scand J Gastroenterol Suppl</i>. 1987;139:41-52.'
      ,index = 9
where  reference_id = 161;

I got error:

The query could not be converted to the required encoding.

Please advise.


I had to login to the machine and then ran this from the command.

5
  • What is the definition of the table as shown by the psql's \d command? Commented Apr 25, 2012 at 17:57
  • Table definition is pg_default Commented Apr 25, 2012 at 18:14
  • This message is produced by pgadmin, not by postgresql. Also the update statement itself seems dubious anyway: no doubling or escaping of the single quote (Crohn's), no WHERE clause. Commented Apr 25, 2012 at 18:23
  • Right, I have updated the scripts Commented Apr 25, 2012 at 20:19
  • As @Daniel mentioned, the error msg comes from pgAdmin. To be precise from pgQueryThread.cpp. I have never had this error though. Commented Apr 25, 2012 at 23:07

1 Answer 1

1

On experiencing the same error, I found I could recreate it when opening a .SQL file saved from PGAdmin in an editor(even Notepad) and then copying and pasting the contents into PGAdmin. When I opened the file directly with PGAdmin, there was no issue.

HTH

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.