Add missing types in dump local

This commit is contained in:
Richard Berger
2021-04-09 17:08:57 -04:00
parent 511f64fde4
commit 234c755507
3 changed files with 16 additions and 0 deletions

View File

@ -144,6 +144,10 @@ void DumpLocalGZ::write_data(int n, double *mybuf)
int written = 0;
if (vtype[j] == Dump::INT) {
written = snprintf(vbuffer, VBUFFER_SIZE, vformat[j], static_cast<int> (mybuf[m]));
} else if (vtype[j] == Dump::DOUBLE) {
written = snprintf(vbuffer, VBUFFER_SIZE, vformat[j], mybuf[m]);
} else if (vtype[j] == Dump::BIGINT) {
written = snprintf(vbuffer, VBUFFER_SIZE, vformat[j], static_cast<bigint> (mybuf[m]));
} else {
written = snprintf(vbuffer, VBUFFER_SIZE, vformat[j], mybuf[m]);
}