Files
scylladb/cql3
Avi Kivity aa0e7c4b23 cql3: fix result_set_builder skipping empty rows
result_set_builder's API is:

  new_row
  add
  add
  add
  new_row
  add
  add
  add
  new_row
  add
  add
  add
  build

Since there is no end_row, it relies on an internal flag to see (in new_row
and in build) whether we need to end a previous row.  The problem is that
we check if the row is empty(), which is true both for the first row, and
for an empty row (if add() is never called, e.g. "SELECT COUNT(*) FROM tab".

Fix by using optional<> to mark whether the row exists (new_row has been
called).  This is ugly, but matches origin.  We should improve that by
adding an explicit end_row().
2015-04-06 19:04:39 +03:00
..
2015-03-30 09:01:59 +02:00
2015-01-05 14:13:31 +08:00
2015-03-26 16:04:55 +01:00
2015-03-26 16:04:55 +01:00
2015-03-30 09:01:59 +02:00
2015-04-06 16:34:34 +03:00
2015-03-30 14:28:16 +03:00
2015-03-30 14:28:16 +03:00
2015-02-04 10:29:00 +01:00
2015-03-30 09:01:59 +02:00
2015-03-30 18:38:26 +02:00
2015-03-27 16:10:35 +01:00
2015-03-27 16:10:35 +01:00