Skip to content

Commit

Permalink
If precision of SQL_NUMERIC was not specified, the default value shou…
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Feb 16, 2015
1 parent 17fe70c commit 699334f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ma_helper.c
Expand Up @@ -840,8 +840,8 @@ int MADB_CharToSQLNumeric(char *buffer, MADB_Desc *Ard, MADB_DescRecord *ArdReco
if (!*p)
return FALSE;

number->precision= strlen(p);
number->scale= (SQLCHAR)ArdRecord->Scale;
if (!number->precision)
number->precision= 38;

while (*p=='0')
p++;
Expand Down

0 comments on commit 699334f

Please sign in to comment.