Allow named bind values to be used multiple times per query
authorMatt Newell <newellm@blur.com>
Mon, 26 Mar 2012 17:46:22 +0000 (10:46 -0700)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Mar 2012 07:31:03 +0000 (09:31 +0200)
commitcff46983a8823fda13cafa2c8774153525f0d4d1
tree00c6625f23cfa64d9173ad1cd3662786cb025cfe
parent3ec88b355b5c9649d128fcf18cb2abc39ac0e770
Allow named bind values to be used multiple times per query

Prepared queries should be able to use a name parameter more than
once. Currently this will result in undefined behavior and crashes.
This patch fixes the bug and implements the needed test case.

Task-number: QTBUG-6420
Change-Id: I07d6537e432a9b2781e9ef3d9f597bceb054527e
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
src/sql/kernel/qsqlresult.cpp
tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp