qt4 can't connect to postgresql 8.2

Bug #197071 reported by Georg Sauthoff
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

Revision history for this message
Georg Sauthoff (g-sauthoff) wrote :
Revision history for this message
Georg Sauthoff (g-sauthoff) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

works fine from other bindings, so it looks like this is a bug in Qt.

Changed in postgresql:
status: New → Invalid
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Is this still an issue in a more recent version of Kubuntu?

Changed in qt4-x11 (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in qt4-x11 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.