1
0
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:
Miloslav Hůla
2012-01-19 10:51:33 +01:00
committed by David Grudl
parent 0723e8ffc8
commit 0b2cb3c6e4

View File

@@ -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,