Skip to content

Commit

Permalink
- minor tweaks to type mapping
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@213010 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Lukas Smith committed May 14, 2006
1 parent b6afe7c commit 1507b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MDB2/Driver/Datatype/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ function mapNativeDatatype($field)
case 'text':
case 'varchar':
$fixed = false;
case 'string':
case 'char':
$type[] = 'text';
if ($length == '1') {
Expand Down Expand Up @@ -354,6 +355,7 @@ function mapNativeDatatype($field)
$type[] = 'float';
$unsigned = preg_match('/ unsigned/i', $field['type']);
break;
case 'unknown':
case 'decimal':
case 'numeric':
$type[] = 'decimal';
Expand Down
2 changes: 2 additions & 0 deletions MDB2/Driver/Datatype/mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ function mapNativeDatatype($field)
case 'text':
case 'varchar':
$fixed = false;
case 'string':
case 'char':
$type[] = 'text';
if ($length == '1') {
Expand Down Expand Up @@ -354,6 +355,7 @@ function mapNativeDatatype($field)
$type[] = 'float';
$unsigned = preg_match('/ unsigned/i', $field['type']);
break;
case 'unknown':
case 'decimal':
case 'numeric':
$type[] = 'decimal';
Expand Down

0 comments on commit 1507b01

Please sign in to comment.