locus
26th January 2007, 03:27
I have a new problem :confused: , ie.
this thread is in partial relation to the thread "update database" that i initially submitted.
the full code i am using is attached.
Whenever my program attempts to write to the database using submitAll() in the following piece of code:
void submit()
{
model->database().transaction();
if (model->submitAll()) {
model->database().commit();
} else {
model->database().rollback();
QMessageBox::warning(this, tr("Cached Table"),
tr("The database reported an error: %1")
.arg(model->lastError().text()));
}
i get the following error:
using unsupported buffer type: -842150451 (parameter: 2) QMYSQL3 : unable to bind value
the QMYSQL3 bit is from the driver, using driverText(), everything before is from the database, using databaseText()
i dont even know what the QMYSQL'3' is about, since i'm not using QT3 support classes. i am thinking the driver is QMYSQL.
If anyone has ever dealt with this error before or have any ideas please let me know.
thanks for your attention.
this thread is in partial relation to the thread "update database" that i initially submitted.
the full code i am using is attached.
Whenever my program attempts to write to the database using submitAll() in the following piece of code:
void submit()
{
model->database().transaction();
if (model->submitAll()) {
model->database().commit();
} else {
model->database().rollback();
QMessageBox::warning(this, tr("Cached Table"),
tr("The database reported an error: %1")
.arg(model->lastError().text()));
}
i get the following error:
using unsupported buffer type: -842150451 (parameter: 2) QMYSQL3 : unable to bind value
the QMYSQL3 bit is from the driver, using driverText(), everything before is from the database, using databaseText()
i dont even know what the QMYSQL'3' is about, since i'm not using QT3 support classes. i am thinking the driver is QMYSQL.
If anyone has ever dealt with this error before or have any ideas please let me know.
thanks for your attention.