mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
Merge pull request #199 from janlanger/patch-1
Helpers::detectType now resolves tinyint as integer
This commit is contained in:
@@ -184,7 +184,7 @@ class Helpers
|
|||||||
'^_' => Type::TEXT, // PostgreSQL arrays
|
'^_' => Type::TEXT, // PostgreSQL arrays
|
||||||
'BYTEA|BLOB|BIN' => Type::BINARY,
|
'BYTEA|BLOB|BIN' => Type::BINARY,
|
||||||
'TEXT|CHAR|POINT|INTERVAL' => Type::TEXT,
|
'TEXT|CHAR|POINT|INTERVAL' => Type::TEXT,
|
||||||
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG|SHORT' => Type::INTEGER,
|
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG|SHORT|^TINY$' => Type::INTEGER,
|
||||||
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC|NUMBER' => Type::FLOAT,
|
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC|NUMBER' => Type::FLOAT,
|
||||||
'^TIME$' => Type::TIME,
|
'^TIME$' => Type::TIME,
|
||||||
'TIME' => Type::DATETIME, // DATETIME, TIMESTAMP
|
'TIME' => Type::DATETIME, // DATETIME, TIMESTAMP
|
||||||
|
Reference in New Issue
Block a user