[done] SIGSEGV by use Zeos 7.1.3a / Postgres 9.3 / Lazarus
Posted: 01.04.2014, 13:10
Hi there,
I got a SIGSEGV, that I can't explain. The best way is, if someone has installed Lazarus, Postgres 9.3, Zeos to download my little example, there you can see it. You just have to insert your Postgres-Password and Path in Class-header, then it should run.
The bug comes, when you delete Connection.Disconnect; and Connection.Connect; in row 193 and 194:Why do I have to disconnect and connect here?
There is a crosspost to german-Lazarus-Forum: http://www.lazarusforum.de/viewtopic.php?f=17&t=7691
Thank you, for your attention!
I got a SIGSEGV, that I can't explain. The best way is, if someone has installed Lazarus, Postgres 9.3, Zeos to download my little example, there you can see it. You just have to insert your Postgres-Password and Path in Class-header, then it should run.
The bug comes, when you delete Connection.Disconnect; and Connection.Connect; in row 193 and 194:
Code: Select all
function SpalteAnlegen: Boolean; //Legt die Spalte in der Tabelle an
var
i: Int32;
begin
Connection.ExecuteDirect('ALTER TABLE tab1 ADD COLUMN '+Spalte+' INTEGER;');
// Connection.Disconnect;
// Connection.Connect;
There is a crosspost to german-Lazarus-Forum: http://www.lazarusforum.de/viewtopic.php?f=17&t=7691
Thank you, for your attention!