diff options
author | Ingela Anderton Andin <[email protected]> | 2011-05-27 17:05:45 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-05-27 17:05:45 +0200 |
commit | 1f334fde091e1a4265d5d54c19a82ca6c6317d4e (patch) | |
tree | 36cd2fbce810a5f5aafb54af1c4a4c17a0738bce /lib/odbc/c_src/odbcserver.c | |
parent | 7ae73012553fc54e84ad00fc00f7940cabf1edbb (diff) | |
download | otp-1f334fde091e1a4265d5d54c19a82ca6c6317d4e.tar.gz otp-1f334fde091e1a4265d5d54c19a82ca6c6317d4e.tar.bz2 otp-1f334fde091e1a4265d5d54c19a82ca6c6317d4e.zip |
Changed SQLINTEGER to SQLSMALLINTEGER for sql_type in the function encode_data_type
Diffstat (limited to 'lib/odbc/c_src/odbcserver.c')
-rw-r--r-- | lib/odbc/c_src/odbcserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c index d61ce940c3..a0b71481c6 100644 --- a/lib/odbc/c_src/odbcserver.c +++ b/lib/odbc/c_src/odbcserver.c @@ -173,7 +173,7 @@ static db_result_msg encode_row_count(SQLINTEGER num_of_rows, db_state *state); static void encode_column_dyn(db_column column, int column_nr, db_state *state); -static void encode_data_type(SQLINTEGER sql_type, SQLINTEGER size, +static void encode_data_type(SQLSMALLINT sql_type, SQLINTEGER size, SQLSMALLINT decimal_digits, db_state *state); static Boolean decode_params(db_state *state, byte *buffer, int *index, param_array **params, int i, int j); @@ -1452,7 +1452,7 @@ static void encode_column_dyn(db_column column, int column_nr, } } -static void encode_data_type(SQLINTEGER sql_type, SQLINTEGER size, +static void encode_data_type(SQLSMALLINT sql_type, SQLINTEGER size, SQLSMALLINT decimal_digits, db_state *state) { switch(sql_type) { |