Don't add the database before verification
authorRob Hoelz <rob@hoelz.ro>
Tue, 22 Apr 2014 05:11:25 +0000 (00:11 -0500)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 29 May 2014 07:35:49 +0000 (09:35 +0200)
commitcbf166d0ab01ce277f9f2a317fd6dabf876e7d04
treecba6ac8734206c376d44eeea234d194348943983
parent0306626a4deb8c36b219ba08a68248d3a454b697
Don't add the database before verification

The local storage facility exposed to QML has a bug; if you attempt to
open a versioned connection, the version is wrong, and you try to handle
that error, the connection is still stored in a connection pool, but in
an unopened state.  The next time you attempt to connect, no matter if
you have the version right or not, the database handle will complain
about being unopened.

See also http://qt-project.org/forums/viewthread/38458/

Task-number: QTBUG-38543
Change-Id: I921b94621009f4968144e1cc513c17b4924a792a
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
src/imports/localstorage/plugin.cpp