run the following with NO PostgreSQL server running. On vista, the error report is repeated! That is, DatabaseError() produces an error string containing 2 copies of the same message! No problem on XP. Only happens with host=localhost as well. If I switch localhost to 127.0.0.1 then no such problem.
Can anyone else confirm on Vista and perhaps try Win 7?
Code: Select all
UsePostgreSQLDatabase()
If OpenDatabase(0, "host=localhost port=5432", "postgres", "postgres")
Debug "Connected to PostgreSQL"
Else
MessageRequester("", "Connection failed: "+DatabaseError())
EndIf

