mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
- BYTEA detection fixed
This commit is contained in:
@@ -476,12 +476,12 @@ class DibiColumnInfo extends DibiObject
|
||||
public static function detectType($type)
|
||||
{
|
||||
static $patterns = array(
|
||||
'BYTEA|BLOB|BIN' => dibi::BINARY,
|
||||
'BYTE|COUNTER|SERIAL|INT|LONG' => dibi::INTEGER,
|
||||
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC|NUMBER' => dibi::FLOAT,
|
||||
'^TIME$' => dibi::TIME,
|
||||
'TIME' => dibi::DATETIME, // DATETIME, TIMESTAMP
|
||||
'YEAR|DATE' => dibi::DATE,
|
||||
'BYTEA|BLOB|BIN' => dibi::BINARY,
|
||||
'BOOL|BIT' => dibi::BOOL,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user