From d01fff6fbbb2f6dc6e4ed9d3ec118f301efe3d66 Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Fri, 8 Nov 2019 20:15:51 +0300 Subject: [PATCH] Fixed DECFLOAT coercion --- src/dsql/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsql/parse.y b/src/dsql/parse.y index c6acd36e6d..a4a31a6d71 100644 --- a/src/dsql/parse.y +++ b/src/dsql/parse.y @@ -4942,7 +4942,7 @@ decfloat_type $$ = newNode(); if (precision) - $$->flags |= FLD_has_scale; + $$->flags |= FLD_has_len; $$->precision = precision == 0 ? 34 : (USHORT) precision; $$->dtype = precision == 16 ? dtype_dec64 : dtype_dec128; $$->length = precision == 16 ? sizeof(Decimal64) : sizeof(Decimal128);