| Subject: | [Qt-interest] Proper way to update a BLOB field |
|---|---|
| From: | David Boosalis |
| Date: | Wed, 14 Apr 2010 05:47:57 -0700 |
|
Using Qt SQlite I can add a record containing a blob, but unable to update a BLOB using the striing way. I've tried something like this. QString str = "UPDATE MyTable SET x='" + QString::number(myClass->x) + "', y='" + QString::number(myClass->y) + ", headerState" + myClass->byteArray + " WHERE id='" + QString::number(myClass->id)); All the fields get updated except for headState. Perhaps I need to use place holders but I don't know how to do this Any ideas appreciated. -David _______________________________________________ Qt-interest mailing list Qt-interest@xxxxxxxxxxxxx http://lists.trolltech.com/mailman/listinfo/qt-interest |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Qt-interest] QSharedMemory limits on Mac OS X, Frank Mertens |
|---|---|
| Next by Date: | Re: [Qt-interest] QSharedMemory limits on Mac OS X, Kustaa Nyholm |
| Previous by Thread: | [Qt-interest] lupdate java support, Dusan Zatkovsky |
| Next by Thread: | Re: [Qt-interest] Proper way to update a BLOB field, Eric Landuyt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |