Changeset 3696

Show
Ignore:
Timestamp:
02/01/08 16:15:34 (17 months ago)
Author:
RQuadling
Message:

Ticket: 766,767

Files:
6 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/DataDict/Mssql.php

    r3692 r3696  
    160160            case 'text': 
    161161            case 'varchar': 
     162            case 'ntext': 
     163            case 'nvarchar': 
    162164                $fixed = false; 
    163165            case 'char': 
     166            case 'nchar': 
    164167                $type[0] = 'string'; 
    165168                if ($length == '1') { 
  • branches/0.10/lib/Doctrine/Import/Mssql.php

    r3692 r3696  
    8686                'fixed'     => $decl['fixed'], 
    8787                'unsigned'  => $decl['unsigned'], 
    88                 'notnull'   => (bool) ($val['is_nullable'] === 'NO'), 
     88                'notnull'   => (bool) (trim($val['is_nullable']) === 'NO'), 
    8989                'default'   => $val['column_def'], 
    9090                'primary'   => (strtolower($identity) == 'identity'), 
  • branches/0.9/lib/Doctrine/DataDict/Mssql.php

    r3691 r3696  
    160160            case 'text': 
    161161            case 'varchar': 
     162            case 'ntext': 
     163            case 'nvarchar': 
    162164                $fixed = false; 
    163165            case 'char': 
     166            case 'nchar': 
    164167                $type[0] = 'string'; 
    165168                if ($length == '1') { 
  • branches/0.9/lib/Doctrine/Import/Mssql.php

    r3691 r3696  
    8686                'fixed'     => $decl['fixed'], 
    8787                'unsigned'  => $decl['unsigned'], 
    88                 'notnull'   => (bool) ($val['is_nullable'] === 'NO'), 
     88                'notnull'   => (bool) (trim($val['is_nullable']) === 'NO'), 
    8989                'default'   => $val['column_def'], 
    9090                'primary'   => (strtolower($identity) == 'identity'), 
  • trunk/lib/Doctrine/DataDict/Mssql.php

    r3690 r3696  
    160160            case 'text': 
    161161            case 'varchar': 
     162            case 'ntext': 
     163            case 'nvarchar': 
    162164                $fixed = false; 
    163165            case 'char': 
     166            case 'nchar': 
    164167                $type[0] = 'string'; 
    165168                if ($length == '1') { 
  • trunk/lib/Doctrine/Import/Mssql.php

    r3690 r3696  
    8686                'fixed'     => $decl['fixed'], 
    8787                'unsigned'  => $decl['unsigned'], 
    88                 'notnull'   => (bool) ($val['is_nullable'] === 'NO'), 
     88                'notnull'   => (bool) (trim($val['is_nullable']) === 'NO'), 
    8989                'default'   => $val['column_def'], 
    9090                'primary'   => (strtolower($identity) == 'identity'),