1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

DibiColumnInfo: getType() is implemented lazy

This commit is contained in:
David Grudl
2009-09-09 17:03:40 +02:00
parent 70ba2f065c
commit 698c12eadc

View File

@@ -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;
}