qt5base-lts/tests/auto
Matt Newell aea6845069 Fix postgres notification support in the QPSQLDriver.
This patch fixes a critical bug in the qsqlpsql driver where
notifications aren't delivered when received. Any blocking libpq
function(specifically PQexec) will read all the incoming data
from the socket, including any pending notifications. This would
cause the socket notifier to never be fired for incoming
notifications that are already queued inside libpq. The qsqldriver
test case was skipping the postgres notification test because of
this bug, now its enabled and passing. In order to fix this
bug I made a wrapper function for PQexec in QPSQLDriverPrivate
that calls _q_handleNotification via QMetaObject::callMethod
QueuedConnection in order to deliver pending notifications
when control returns to the event loop. I also added a flag
to ensure only one call is made each time the event loop is
entered.

Change-Id: I19f5297094ae7ae46bfb0717e4fca744d69f7b92
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2012-03-30 23:51:11 +02:00
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove commented code from qtconcurrentmap autotest. 2012-03-14 07:51:45 +01:00
corelib Properly detach when the modified object is a sub object 2012-03-29 16:08:40 +02:00
dbus Remove comment about QVariantList and QVariantMap. 2012-03-28 03:18:56 +02:00
gui Protect QAbstractTextDocumentLayout::anchorAt() from preedit 2012-03-27 23:03:12 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix some compiler warnings in tests. 2012-03-27 16:35:39 +02:00
opengl EGLFS: Integrate building into configure. 2012-03-21 03:03:29 +01:00
other Fix IAccessible2 for Windows, enable MSAA/IAccessible for MinGW. 2012-03-27 12:29:46 +02:00
printsupport QPrinterInfo: remove a test that is too early 2012-03-24 17:07:52 +01:00
shared Reverted use of tentative commit use in QWidget editors 2012-03-27 12:51:38 +02:00
sql Fix postgres notification support in the QPSQLDriver. 2012-03-30 23:51:11 +02:00
testlib Fix some compiler warnings in tests. 2012-03-27 16:35:39 +02:00
tools Use "qt-project.org" instead of "trolltech" in the resource system 2012-03-28 07:50:06 +02:00
widgets Use "qt-project.org" instead of "trolltech" in the resource system 2012-03-28 07:50:06 +02:00
xml Fix some compiler warnings in tests. 2012-03-27 16:35:39 +02:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00