mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
Detection of PostgreSQL array types
This commit is contained in:
committed by
David Grudl
parent
0723e8ffc8
commit
0b2cb3c6e4
@@ -619,6 +619,7 @@ class DibiColumnInfo extends DibiObject
|
||||
public static function detectType($type)
|
||||
{
|
||||
static $patterns = array(
|
||||
'^_' => dibi::TEXT, // PostgreSQL arrays
|
||||
'BYTEA|BLOB|BIN' => dibi::BINARY,
|
||||
'TEXT|CHAR' => dibi::TEXT,
|
||||
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG' => dibi::INTEGER,
|
||||
|
Reference in New Issue
Block a user