I'm using Adoquery with a Postgres database. When I do an UPDATE or INSERT query the ExecSql nor the OPEN returns the number of affected records as it should , but always -1. I use the newest version of psqlODBC : 09.01.0200.
Code:
Adoquery1.close;
Adoquery1.SQL.Clear;
query := 'insert into testtabel (nummer, naam) values (3,''Barnsten'') ';
Adoquery1.SQL.Add(query ) ;
result := Adoquery1.ExecSql;
Result is -1