The following is the sql statement
QString myQuery = "UPDATE myTable SET myAttr = :myAttr WHERE ID = 1";
//m_query is a QSqlQuery object pointer
m_query->prepare(myQuery);
QString value = "some value";
m_query->bindValue(":myAttr", QVariant(value)) ;
m_query->exec();
But when I print the executedQuery, it shows the value for **myAttr = ?**
The execution doesn't incur any complain about the bindValue(). Anyone aware what's going on here? I am using QT5.2.1 MinGW_32bits Thanks in advance.
executedQuerywon't show you query with bound value. Just a string with placeholder