mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
DibiLazyStorage: empty string as property name throws exception; fixed in DibiDatabaseInfo too
This commit is contained in:
@@ -533,7 +533,7 @@ class DibiColumnInfo extends DibiObject
|
||||
if (self::$types === NULL) {
|
||||
self::$types = new DibiLazyStorage(array(__CLASS__, 'detectType'));
|
||||
}
|
||||
return self::$types->{$this->info['nativetype']};
|
||||
return $this->info['nativetype'] ? self::$types->{$this->info['nativetype']} : dibi::TEXT;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user