1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

Helpers::detectType(): detect PostgreSQL range types as Type::TEXT

This commit is contained in:
Jan Rössler
2021-10-30 16:34:16 +02:00
committed by David Grudl
parent 0a29fcb502
commit cb82357cfb

View File

@@ -181,6 +181,7 @@ class Helpers
{
static $patterns = [
'^_' => Type::TEXT, // PostgreSQL arrays
'RANGE$' => Type::TEXT, // PostgreSQL range types
'BYTEA|BLOB|BIN' => Type::BINARY,
'TEXT|CHAR|POINT|INTERVAL|STRING' => Type::TEXT,
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG|SHORT|^TINY$' => Type::INTEGER,