Changeset: ea3fe38d68d5 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/ea3fe38d68d5 Modified Files: sql/server/sql_atom.c Branch: default Log Message:
Do not adjust precision of decimal diffs (24 lines): diff --git a/sql/server/sql_atom.c b/sql/server/sql_atom.c --- a/sql/server/sql_atom.c +++ b/sql/server/sql_atom.c @@ -68,9 +68,9 @@ atom_int( allocator *sa, sql_subtype *tp atom *a = atom_create(sa); if(!a) return NULL; - a->isnull = 0; a->tpe = *tpe; + a->data.len = 0; a->data.vtype = tpe->type->localtype; switch (ATOMstorage(a->data.vtype)) { case TYPE_bte: @@ -99,9 +99,6 @@ atom_int( allocator *sa, sql_subtype *tp int bits = number_bits(val); if (a->tpe.type->eclass == EC_NUM) a->tpe.digits = bits; - else if (a->tpe.type->eclass == EC_DEC) - a->tpe.digits = bits2digits(bits) + 1;; - a->data.len = 0; return a; } } _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org