Add payload to QSqlDriver notification with PSQL implementation.
authorMatt Newell <newellm@blur.com>
Thu, 22 Mar 2012 17:42:56 +0000 (10:42 -0700)
committerQt by Nokia <qt-info@nokia.com>
Sat, 31 Mar 2012 06:40:55 +0000 (08:40 +0200)
commitd5e9616e399e68838f99ae4c123930b330bc4221
tree0ca966f2a5f6c9dd94de0e7932a2721b77340eea
parent9b423b6e6920250f97b74aeb86f609cf55a5ee22
Add payload to QSqlDriver notification with PSQL implementation.

Postgres async notifications can contain a payload parameter
that is currently discarded. This patch provides the QSqlDriver
api change necessary to deliver a payload with each emitted
notification by adding a QVariant parameter to the notification
signal. It also provides the implementation for the qsqlpsql driver.
The qsql_ibase driver has been updated to reflect the change to the
notification signal signature.

The eventNotificationPSQL test in the qsqldatabase test has
been expanded to test proper payload sending and receiving.
All tests/auto/sql/kernel tests have been run with sqllite and
postgres with no regressions.

Task-number: QTBUG-13500
Change-Id: I9137f6acc8cfca93f45791ca930e0287d93d5d0d
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/drivers/ibase/qsql_ibase.cpp
src/sql/drivers/psql/qsql_psql.cpp
src/sql/kernel/qsqldriver.cpp
src/sql/kernel/qsqldriver.h
tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp