Skip to content

Commit

Permalink
Helpers::detectType(): detect PostgreSQL range types as Type::TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
JanRossler authored and dg committed Nov 3, 2021
1 parent 5c2890c commit da97fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dibi/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public static function detectType(string $type): ?string
{
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,
Expand Down

0 comments on commit da97fb0

Please sign in to comment.