RevOpenDatabase + postgres + linux = returning empty!?

Andre Garzia andre at andregarzia.com
Fri May 30 03:53:56 EDT 2008


Aloha Friends,

I have a script like:

	set the externals of stack "script" to "/opt/web/bin/Externals/revdb.so"
	revSetDatabaseDriverPath "/opt/web/bin/Externals/dbdrivers"
	get revOpenDatabase("postgresql", "localhost", "dbname", "username",
"password")
	if it is not a number then
		cgiOutput ("error: can't open database:"&&it&&the result&&the
externals of stack "script"), "text/plain"
		exit to top
	else
		put it into tDatabaseID
	end if

This script executes, but the 'it' variable is empty after
revOpenDatabase?! No error but no ID. Any clues?

Revolution 2.9.0 under Linux CentOS 5.

I've used similar scripts to connect to MySQL with no problem...

Thanks
Andre
-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list