Re: [CQL feature request] Adding number of rows affected by an UPDATE / DELETE

2014-08-26 Thread Jonathan Ellis
The storage engine design doesn't support this; we just write the new data (or tombstone for delete). This is much more performant than having to check first if the row exists. On Tue, Aug 26, 2014 at 5:51 PM, Sékine Coulibaly wrote: > SQL allows for sqlca.sqlerrd[0] to yield valuable informat

[CQL feature request] Adding number of rows affected by an UPDATE / DELETE

2014-08-26 Thread Sékine Coulibaly
SQL allows for sqlca.sqlerrd[0] to yield valuable information regarding how many rows were affected by a DELETE or an UPDATE statement. This is useful to verify that a DELETE on a given primary key really matched a row, or even better, get the exact count of deleted rows. I just came through the f