| Subject: | [Qt-interest] OT: Re: Proper way to update a BLOB field |
|---|---|
| From: | Dusan Zatkovsky |
| Date: | Wed, 14 Apr 2010 16:14:40 +0200 |
On Wednesday 14 of April 2010 14:47:57 David Boosalis wrote: > QString str = "UPDATE MyTable SET x='" + QString::number(myClass->x) + > "', y='" + QString::number(myClass->y) + > ", headerState" + myClass->byteArray + > " WHERE id='" + QString::number(myClass->id)); OT, this is the best example how sql statement must !not! be constructed due to sql injection. -- Dusan _______________________________________________ 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] best way set a background photo for a QGraphicsView?, Jason H |
|---|---|
| Next by Date: | [Qt-interest] A humble request..., Gordon Schumacher |
| Previous by Thread: | Re: [Qt-interest] Proper way to update a BLOB field, David Boosalis |
| Next by Thread: | Re: [Qt-interest] OT: Re: Proper way to update a BLOB field, Jason H |
| Indexes: | [Date] [Thread] [Top] [All Lists] |