Skip to content

Commit

Permalink
Treat FIELD_TYPE_CHAR, FIELD_TYPE_SHORT and FIELD_TYPE_INT24 as dt_in…
Browse files Browse the repository at this point in the history
…teger

even when they are signed.
  • Loading branch information
pfedor committed Sep 22, 2012
1 parent e3c6871 commit 5675cb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backends/mysql/statement.cpp
Expand Up @@ -377,6 +377,8 @@ void mysql_statement_backend::describe_column(int colNum,
case FIELD_TYPE_CHAR: //MYSQL_TYPE_TINY:
case FIELD_TYPE_SHORT: //MYSQL_TYPE_SHORT:
case FIELD_TYPE_INT24: //MYSQL_TYPE_INT24:
type = dt_integer;
break;
case FIELD_TYPE_LONG: //MYSQL_TYPE_LONG:
type = field->flags & UNSIGNED_FLAG ? dt_long_long
: dt_integer;
Expand Down

0 comments on commit 5675cb0

Please sign in to comment.