cockroach
cockroach copied to clipboard
Add application error for each sql statement
The current wire format only allows specifying an error for an entire response. postgres allows you to run multiple commands together (we support that), with the capability to report errors for each command.
mydb=# INSERT INTO t VALUES (, 2); INSERT INTO t VALUES (6, 2); ERROR: syntax error at or near "," LINE 1: INSERT INTO t VALUES (, 2); ^ INSERT 0 1 mydb=# select * from t; k | v ---+--- 1 | 2 2 | 2 3 | 2 5 | 2 6 | 2 (5 rows)
I'm going to move the application error from the driver.ResponseHeader to driver.Result.
I'm on it.