Skip to content

Commit

Permalink
Merge pull request #2255 from ogarbe/1.3.1
Browse files Browse the repository at this point in the history
Fixes #2236 - in mysql tinyint(1) is not boolean
  • Loading branch information
Phalcon committed Mar 31, 2014
2 parents f6566e8 + 0d72f09 commit 5be2b19
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ext/db/adapter/pdo/mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,6 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns){
break;
}

/**
* Tinyint(1) is boolean
*/
if (phalcon_memnstr_str(column_type, SL("tinyint(1)"))) {
phalcon_array_update_string_long(&definition, SL("type"), 8, 0);
phalcon_array_update_string_long(&definition, SL("bindType"), 5, 0);
PHALCON_INIT_NVAR(column_type);
ZVAL_STRING(column_type, "boolean", 1); // Change column type to skip size check.
break;
}

/**
* Smallint/Bigint/Integers/Int are int
*/
Expand Down

0 comments on commit 5be2b19

Please sign in to comment.