Changeset 1131

Show
Ignore:
Timestamp:
10/21/08 22:30:21 (3 months ago)
Author:
laurentj
Message:

ticket #719: createdao doesn't recognize numeric type of postgresql

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/lib/jelix-scripts/commands/createdao.cmd.php

    r1019 r1131  
    7575         foreach($fields as $fieldname=>$prop){ 
    7676 
    77             switch($prop->type){ 
     77            switch(strtolower($prop->type)){ 
    7878 
    7979               case 'clob':  
     
    9696               case 'int': 
    9797               case 'integer': 
     98               case 'numeric': 
    9899               case 'smallint': 
    99100               case 'year': 
  • trunk/lib/jelix-scripts/commands/createdao.cmd.php

    r1018 r1131  
    7575         foreach($fields as $fieldname=>$prop){ 
    7676 
    77             switch($prop->type){ 
     77            switch(strtolower($prop->type)){ 
    7878 
    7979               case 'clob':  
     
    9494               case 'number': 
    9595               case 'tinyint': 
     96               case 'numeric': 
    9697               case 'int': 
    9798               case 'integer': 
Download in other formats: Unified Diff Zip Archive