Changeset: bad0b9dd9fe1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bad0b9dd9fe1
Modified Files:
sql/backends/monet5/sql_result.c
Branch: protocol
Log Message:
Compilation fixes.
diffs (23 lines):
diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -1537,17 +1537,17 @@ mvc_export_table_prot10(backend *b, stre
atom_size =
ATOMsize(ATOMstorage(mtype));
}
if (c->type.type->eclass == EC_TIMESTAMP) {
- atom_size = sizeof(lng);
// convert timestamp values to epoch
lng time;
size_t j = 0;
- bool swap = mnstr_byteorder(s) != 1234;
+ int swap = mnstr_byteorder(s) != 1234;
timestamp *times = (timestamp*)
Tloc(iterators[i].b, srow);
lng *bufptr = (lng*) buf;
for(j = 0; j < (row - srow); j++) {
MTIMEepoch2lng(&time, times +
j);
bufptr[j] = swap ?
long_long_SWAP(time) : time;
}
+ atom_size = sizeof(lng);
} else {
if (mnstr_byteorder(s) != 1234) {
size_t j = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list