Curious.... PostgreSQL

Everything else that doesn't fall into one of the other PB categories.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Curious.... PostgreSQL

Post by srod »

Hi,

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
I may look like a mule, but I'm not a complete ass.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Re: Curious.... PostgreSQL

Post by ABBKlaus »

confirmed for Win7 Home Premium 64 Bit and PB 4.51 x86 & x64

Image

Image

BR Klaus
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Curious.... PostgreSQL

Post by srod »

Is this a bug with PB or the PostgreSQL client lib which PB is using?
I may look like a mule, but I'm not a complete ass.
Post Reply