Skip to content

Commit ab0c20a

Browse files
committed
bool support
1 parent 94e4014 commit ab0c20a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DB.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ private function _map_type($driver_type) {
395395
switch ($driver) {
396396
case 'mysql':
397397
$map = [
398-
'int' => ['tinyint', 'smallint', 'mediumint', 'int', 'bigint'],
398+
'int' => ['smallint', 'mediumint', 'int', 'bigint'],
399+
'bool' => ['tinyint'],
399400
'float' => ['float', 'double', 'decimal'],
400401
'datetime' => ['datetime', 'date']
401402
];

0 commit comments

Comments
 (0)