Changeset: 3f8d66351ddb for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3f8d66351ddb Modified Files: sql/ChangeLog.Jun2010 sql/src/common/sql_types.mx Branch: Jun2010 Log Message:
Pass scale of return type on to This fixes bug 2624. diffs (32 lines): diff -r 5deea889fbb0 -r 3f8d66351ddb sql/ChangeLog.Jun2010 --- a/sql/ChangeLog.Jun2010 Tue Jul 20 14:03:28 2010 +0200 +++ b/sql/ChangeLog.Jun2010 Tue Jul 20 14:25:42 2010 +0200 @@ -1,6 +1,10 @@ # ChangeLog file for sql # This file is updated with Maddlog +* Tue Jul 20 2010 Sjoerd Mullender <sjo...@acm.org> +- Fixed bug 2624: function returning decimal returned result that was + scaled incorrectly. + * Sun Jul 18 2010 Stefan Manegold <stefan.maneg...@cwi.nl> - fixed bug 2622 "LIMIT & OFFSET ignored on 64-bit big-endian when combined with GROUP BY" diff -r 5deea889fbb0 -r 3f8d66351ddb sql/src/common/sql_types.mx --- a/sql/src/common/sql_types.mx Tue Jul 20 14:03:28 2010 +0200 +++ b/sql/src/common/sql_types.mx Tue Jul 20 14:25:42 2010 +0200 @@ -686,13 +686,12 @@ { if (strcmp(f->base.name, name) == 0) { if (list_length(f->ops) == nrargs) { - int scale = 0; sql_subfunc *fres = ZNEW(sql_subfunc); sql_ref_init(&(fres->ref)); fres->func = f; if (f->res.type) - sql_init_subtype(&fres->res, f->res.type, f->res.digits, scale); + sql_init_subtype(&fres->res, f->res.type, f->res.digits, f->res.scale); if (f->res.comp_type) fres->res.comp_type = f->res.comp_type; return fres; _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list