diff options
author | Dmitry Belyaev <[email protected]> | 2014-11-13 15:55:20 +1100 |
---|---|---|
committer | Dmitry Belyaev <[email protected]> | 2014-11-14 13:53:16 +1100 |
commit | d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da (patch) | |
tree | 6d203d63b91053dbbe7f7b631e7fec04985febaa /lib/odbc/c_src/odbcserver.c | |
parent | 8aea937d5a2a1edc5ff36a99b5675259d18c88ce (diff) | |
download | otp-d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da.tar.gz otp-d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da.tar.bz2 otp-d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da.zip |
Fix odbcserver warnings
These are signaled by -Wall
Diffstat (limited to 'lib/odbc/c_src/odbcserver.c')
-rw-r--r-- | lib/odbc/c_src/odbcserver.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c index 02459c14cc..be4e1bbeec 100644 --- a/lib/odbc/c_src/odbcserver.c +++ b/lib/odbc/c_src/odbcserver.c @@ -784,6 +784,9 @@ static db_result_msg db_select(byte *args, db_state *state) orientation = SQL_FETCH_NEXT; offset = atoi(strtok((char *)(args + sizeof(byte)), ";")); n = atoi(strtok(NULL, ";")); + break; + default: + DO_EXIT(EXIT_PARAM_ARRAY); } msg = encode_empty_message(); @@ -934,7 +937,7 @@ static db_result_msg db_describe_table(byte *sql, db_state *state) SQLSMALLINT num_of_columns; SQLCHAR name[MAX_NAME]; SQLSMALLINT name_len, sql_type, dec_digits, nullable; - SQLLEN size; + SQLULEN size; diagnos diagnos; int i; @@ -1286,7 +1289,7 @@ static db_result_msg encode_column_name_list(SQLSMALLINT num_of_columns, db_result_msg msg; SQLCHAR name[MAX_NAME]; SQLSMALLINT name_len, sql_type, dec_digits, nullable; - SQLLEN size; + SQLULEN size; msg = encode_empty_message(); |