示例#1
0
 /**
  * fill correctly some properties of the column, depending of its type
  * and other properties
  * @param jDbColumn $col
  */
 function normalizeColumn($col)
 {
     $type = $this->conn->tools()->getTypeInfo($col->type);
     $col->nativeType = $type[0];
     if (!$col->length && $type[5]) {
         $col->length = $type[5];
     }
     if ($type[6]) {
         $col->autoIncrement = true;
         $col->notNull = true;
     }
 }