I see that Unidac 7.0.1 is supposed to support Linux. When I run the very simple code below i get:
What am I doing wrong? Must be me, the Unidac team wouldn't release something this fundamentally broken. I have looked for Linux specific docs, there appear to be none...First chance exception at $000000000045F2A3. Exception class EEncodingError with message 'Character index out of bounds (0)'. Process testunidac (1918)
App code.
Code: Select all
program testunidac;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
Uni,
UniProvider,
PostgreSQLUniProvider;
var
Conn : TUniConnection;
begin
Conn := TUniConnection.Create(nil);
try
Conn.LoginPrompt := false;
Conn.Server := 'myserver';
Conn.Database := 'mydatabase';
Conn.Username := 'myuser';
Conn.Password := 'mypassword';
Conn.ProviderName := 'PostgreSQL';
Conn.Connect;
WriteLn('Connected');
ReadLn;
Conn.Disconnect;
Conn.Free;
except
on E: Exception do
begin
Writeln(E.ClassName, ': ', E.Message);
Conn.Free;
end;
end;
end.