Quote Originally Posted by fatjuicymole View Post
If you don't know if the query is being build correctly, send it to the debug console using query.lastQuery()
I know if the query is build correctly or no . What I want to say is that using QSqlQuery::prepare is a good solution for problems with ie. string coding. I don't need to know about code page used by connection to server.