cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

Add application error for each sql statement

Open vivekmenezes opened this issue 11 years ago • 1 comments

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.

vivekmenezes avatar Aug 21 '15 16:08 vivekmenezes

I'm on it.

vivekmenezes avatar Aug 21 '15 16:08 vivekmenezes