Fix QSqlQuery::value to use proper index check
authorThiago A. Correa <thiago.correa@gmail.com>
Thu, 4 Oct 2012 16:11:23 +0000 (13:11 -0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 5 Oct 2012 01:16:37 +0000 (03:16 +0200)
commitb742dbdc3fe85062cfe133de9db9e81703203ac0
tree118a5ca8bcf86cd167d0c1583399d9024f01b61f
parentbdd3521f832f1ef1b596cf022e75219a590d08bc
Fix QSqlQuery::value to use proper index check

Change the validation of index parameter to use -1 constant
instead of QSql::BeforeFirstRow which is unrelated to field index

Change-Id: I43b42bc7ce717bcd9ddc987d2e716f1672c00775
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/kernel/qsqlquery.cpp