Skip to content

Commit

Permalink
zero fraction size of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
artpaul committed Oct 2, 2017
1 parent 8728d6a commit 3a58f19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions driver/odbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ SQLColAttribute(HSTMT statement_handle, SQLUSMALLINT column_number, SQLUSMALLINT
}
break;
case SQL_DESC_PRECISION:
num_value = 0;
break;
case SQL_DESC_NUM_PREC_RADIX:
if (type_info.IsIntegerType())
Expand Down Expand Up @@ -284,7 +285,7 @@ SQLColAttribute(HSTMT statement_handle, SQLUSMALLINT column_number, SQLUSMALLINT
break;
default:
throw SqlException(
"Unsupported FieldIdentifier = " + std::to_string(field_identifier),
"Unsupported FieldIdentifier = " + std::to_string(field_identifier),
"HYC00");
}

Expand Down Expand Up @@ -752,9 +753,9 @@ SQLColumns(HSTMT statement_handle,
: env(env_)
{
}

void UpdateColumnInfo(std::vector<ColumnInfo> * columns_info) override
{
{
columns_info->at(4).name = "Int16";
columns_info->at(4).type_without_parameters = "Int16";
}
Expand Down

0 comments on commit 3a58f19

Please sign in to comment.