Permalink
Browse files

Treat FIELD_TYPE_CHAR, FIELD_TYPE_SHORT and FIELD_TYPE_INT24 as dt_in…

…teger

even when they are signed.
  • Loading branch information...
pfedor committed Sep 22, 2012
1 parent e3c6871 commit 5675cb09b93e40890420b6fc8fc78f62828e4934
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/backends/mysql/statement.cpp
@@ -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;

0 comments on commit 5675cb0

Please sign in to comment.