Skip to content

Commit

Permalink
tinyint(1) instead of plain tinyint for booleans
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@206021 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
helgi committed Jan 27, 2006
1 parent 96a46cf commit 3bdb35c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MDB2/Driver/Datatype/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function getTypeDeclaration($field)
}
return 'INT';
case 'boolean':
return 'TINYINT';
return 'TINYINT(1)';
case 'date':
return 'DATE';
case 'time':
Expand Down
2 changes: 1 addition & 1 deletion MDB2/Driver/Datatype/mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function getTypeDeclaration($field)
}
return 'INT';
case 'boolean':
return 'TINYINT';
return 'TINYINT(1)';
case 'date':
return 'DATE';
case 'time':
Expand Down

0 comments on commit 3bdb35c

Please sign in to comment.