Closed Machado117 closed 1 year ago
Thanks for the issue and found error case. I reproduced this case and will fix it it soon. Now, AcraServer handles returning
clauses only with column names in the list and doesn't accept literals. We will change it to be more compatible with SQL syntax.
Ok, thanks!
Hi. We fixed this problem in recent PR #584. It is already in master.
Seems to be working. Thanks for the fix!
Describe the bug When I run an INSERT query ending in
RETURNING 0
with encryption turned on for one of the the fields, acra does not encrypt the field. The following message can be found on acra logs:time="2022-09-23T09:39:36Z" level=error msg="Error occurred on query handler" client_id=testfdz code=900 error="invalid returning format provided" proxy=client session_id=8
If I run the query as a JDBC batch the entry is not inserted at all.To Reproduce Steps to reproduce the behavior:
INSERT INTO mytable (name, age) VALUES ('John', 25) RETURNING 0;
public class AcraCrash {
}
Environment (please complete the following information):