Don't push-row a nil value.

In case of a failure to pre-process or transform values in the row that as
been read, we need to refrain from pushing the row into our next batch.

See #726, that got hit by the recent bug in the middle of something else
entirely.
This commit is contained in:
Dimitri Fontaine 2018-01-25 23:53:11 +01:00
parent 25152f6054
commit 5ecd03ceba

View File

@ -141,4 +141,5 @@
"Given a row from the queue, prepare it for the next batch."
(multiple-value-bind (pg-vector-row bytes)
(prepare-and-format-row copy nbcols row)
(push-row current-batch pg-vector-row bytes)))
(when pg-vector-row
(push-row current-batch pg-vector-row bytes))))