I don't know what I am doing wrong, so please help.

My query only works if I use backslash quotes in exec string:

Qt Code:
  1. query.exec("INSERT INTO \"tstSchema\".\"testTable\" (\"Name\") "
  2. "VALUES ('John')" );
To copy to clipboard, switch view to plain text mode 

This is not the way is described in SQL programming guide in Qt Assistant, nor in the Postgre manual and this way is very clumsy. I'm using Win 7 64 bit, Qt 4.8.1, Qt Creator 2.5., Postgres 9.1.Thanks in advance.