Hi,
Im trying to use postgres with IslandDb from a darwin console app. I used homebrew to install libpq and I added a symlink
ln -s /opt/homebrew/opt/libpq/lib/libpq.dylib /usr/local/lib/libpq.dylib
so that the console app can find libpq.
I get a segmentation fault when I run the console app.
The code looks like this
namespace IslandDbConsoleApplication;
uses
RemObjects.Elements.PostgreSQL;
begin
//writeLn('The magic happens here.');
var connection := new PostgreSQLDbConnection;
// password=password
var connectionString := 'xxx';
connection.ConnectionString := connectionString;
connection.Open;
connection.Execute('');
end.
I set a breakpoint on open and it never gets to execute.
Im not really sure if just the one symlink was sufficient or its a problem with the island code ?
Cheers,
John