mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 10:53:17 +01:00
DibiColumnInfo: getType() is implemented lazy
This commit is contained in:
parent
70ba2f065c
commit
698c12eadc
@ -460,7 +460,6 @@ class DibiColumnInfo extends DibiObject
|
||||
{
|
||||
$this->driver = $driver;
|
||||
$this->info = $info;
|
||||
$this->type = self::detectType($this->info['nativetype']);
|
||||
}
|
||||
|
||||
|
||||
@ -513,6 +512,9 @@ class DibiColumnInfo extends DibiObject
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
if ($this->type === NULL) {
|
||||
$this->type = self::detectType($this->info['nativetype']);
|
||||
}
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user