Skip to content

Commit

Permalink
Initialize properly parameter for big(date)time types
Browse files Browse the repository at this point in the history
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Sep 21, 2015
1 parent 54fdd32 commit 88cfea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tds/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ tds_set_param_type(TDSCONNECTION * conn, TDSCOLUMN * curcol, TDS_SERVER_TYPE typ
curcol->on_server.column_type = XSYBVARBINARY;
}
break;
case SYB5BIGTIME:
case SYB5BIGDATETIME:
curcol->column_prec = 6;
curcol->column_scale = 6;
break;
default:
break;
}
Expand Down

0 comments on commit 88cfea1

Please sign in to comment.