Skip to content

Commit da97fb0

Browse files
JanRosslerdg
authored andcommitted
Helpers::detectType(): detect PostgreSQL range types as Type::TEXT
1 parent 5c2890c commit da97fb0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Dibi/Helpers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public static function detectType(string $type): ?string
179179
{
180180
static $patterns = [
181181
'^_' => Type::TEXT, // PostgreSQL arrays
182+
'RANGE$' => Type::TEXT, // PostgreSQL range types
182183
'BYTEA|BLOB|BIN' => Type::BINARY,
183184
'TEXT|CHAR|POINT|INTERVAL|STRING' => Type::TEXT,
184185
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG|SHORT|^TINY$' => Type::INTEGER,

0 commit comments

Comments
 (0)