]> git.andy128k.dev Git - ipf.git/commitdiff
double added
authorAlexander Meteiko <ameteiko@gmail.com>
Thu, 10 Sep 2009 09:24:45 +0000 (12:24 +0300)
committerAlexander Meteiko <ameteiko@gmail.com>
Thu, 10 Sep 2009 09:24:45 +0000 (12:24 +0300)
ipf/orm/export.php
ipf/orm/formatter.php
ipf/orm/table.php

index 27f4dd34c98a85dd3880fb28c85b3670546c44e1..dd77880d16239d9b613fc69a706a6d45d7e976fe 100644 (file)
@@ -8,6 +8,7 @@ class IPF_ORM_Export extends IPF_ORM_Connection_Module
         'integer'   => 0,
         'decimal'   => 0.0,
         'float'     => 0.0,
+        'double'    => 0.0,
         'timestamp' => '1970-01-01 00:00:00',
         'time'      => '00:00:00',
         'date'      => '1970-01-01',
@@ -595,7 +596,7 @@ class IPF_ORM_Export extends IPF_ORM_Connection_Module
 
         foreach ($table->getGenerators() as $name => $generator) {
             if ($generator === null) {
-                continue;                      
+                continue;                       
             }
 
             $generators[] = $generator;
@@ -612,7 +613,7 @@ class IPF_ORM_Export extends IPF_ORM_Connection_Module
 
     public function exportGeneratorsSql(IPF_ORM_Table $table)
     {
-       $sql = array();
+        $sql = array();
 
         foreach ($this->getAllGenerators($table) as $name => $generator) {
             $table = $generator->getTable();
index b01275d6fc6e480609d029dca053c1a62b1574ef..c4bf9c7bf09c754c27741da6bbf625315c6513a4 100644 (file)
@@ -54,7 +54,7 @@ class IPF_ORM_Formatter extends IPF_ORM_Connection_Module
             $arr[$k] = $this->quoteIdentifier($v, $checkOption);
         }
 
-               return $arr;
+        return $arr;
     }
 
     public function quote($input, $type = null)
index 9f00d7bb9f4aedd86121fdf2dc1bd97f2c53d7aa..142875b6fa661b658ea44ca54ef21af2af66f0e7 100644 (file)
@@ -658,6 +658,7 @@ class IPF_ORM_Table extends IPF_ORM_Configurable implements Countable
                 case 'string':
                 case 'clob':
                 case 'float':
+                case 'double':
                 case 'integer':
                 case 'array':
                 case 'object':