Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.1.1
-
None
-
Qt 5.1.1 on Ubuntu 13.10
The database is PostGreSQL 9.1.9
-
5193c14536fafc57c860e9e234e21ddc29d5b6b0
Description
The following prepared query worked correct on Qt4.8 but failes on Qt5.1.1 with a syntax error at end of input:
query.prepare(QString("SELECT coldefs[:r][:c] FROM _reports WHERE \"name\"=\'%1\';").arg(m_mainWindow->getUi()>printTableNameLabel>text())); for(int r=0; r<3; ++r)
{
query.bindValue(":r", r + 1);
for(int c=0; c<m_mainWindow->getUi()>printColSpinBox>value(); ++c)
}
Other prepared queries work corecctly. This query is the only one where the bound variables are used as array index. Maybe this is the problem?