I'm updating my system from Zeos 7.2.14 to latest 8.0.0 release and my queries are throwing this error now with PostgreSQL 15.
The queries requires a schema so before any SQL query I concatenate
SET search_path = %s;
so, for an example, I concatenate queries like:
Query.SQL.Add('SET search_path = %s;' schema); Query.SQL.Add('SELECT * FROM %s;' tablename); Query.Open;
It works nicely with Zeos 7, but now on Zeos 8 Its throwing the error of the title:
[Debugger Exception Notification] Project --- raised exception class 'EZSQLException' with message: SQL Error: ERROR: cannot insert multiple commands into a prepared statement ERROR 42601 cannot insert multiple commands into a prepared statement Code: 7 SQL: SET search_path = 'teste'; DELETE FROM autorizacao WHERE to_timestamp(EXTRACT(EPOCH FROM aut_data) + aut_duracao) < CURRENT_TIMESTAMP In file 'ZDbcPostgreSql.pas' at line 670: raise Error; [Ignore this exception type][Break][Continue]What should I do to fix this?