I've done some searching for a solution but can't find one.
Any ideas on how to check that the connection has actually been made to Postgresql will be gratefully received. Otherwise I will remove the test and error dialogue and rely on the fact that a SELECT does in fact select a set.
Thanks
Phil
Code: Select all
-- Connect to the database.
on databaseConnect
get revOpenDatabase("postgresql", "127.0.0.1:5432", "address_book", "postie", "Bob")
if it is not true then
error "Could not connect to database:" && it
end if
put it into sDatabaseId
showRecord
end databaseConnect