precision and scale were used other way around. Flipped their usage

in all places
This commit is contained in:
Cyber Emissary
2018-02-06 12:51:53 -05:00
parent 702ce2b7cd
commit fd230f68f2
4 changed files with 6 additions and 6 deletions

View File

@@ -247,7 +247,7 @@ int ret;
//fprintf(stdout,"len %d size %d\n",len, col->col_size);
char *str;
if (col->col_type == MDB_NUMERIC) {
str = mdb_numeric_to_string(mdb, start, col->col_prec, col->col_scale);
str = mdb_numeric_to_string(mdb, start, col->col_scale, col->col_prec);
} else {
str = mdb_col_to_string(mdb, mdb->pg_buf, start, col->col_type, len);
}