qt4 can't connect to postgresql 8.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
qt4-x11 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: postgresql
Hi,
I upgraded to Gutsy. My Qt4 application can't connect to the local postgresql db. It works at an old Gentoo system. I get a
'connection pointer is NULL' error from postgres. This error message comes directly from postgres. If I sniff the lo-device, I see postgres related traffic. The postgres db is created from scratch. I.e. created new user, created new db. With 'psql' I can connect and do stuff just fine.
I attached a minimal C++/Qt example, which reproduces the problem for me. You have to change the username and dbname ... to something, which is apropriate at your system.
Compile it via:
# qmake-qt4 sqltest.pro
# make
The output at my Gutsy system is:
# ./sqltest
("QPSQL7", "QPSQL", "QMYSQL3", "QMYSQL", "QSQLITE", "QSQLITE2")
false
"connection pointer is NULL
QPSQL: Unable to connect"
Best regards
Georg Sauthoff
works fine from other bindings, so it looks like this is a bug in Qt.