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 24, 2021
1 parent 0a29fcb commit cb82357
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 @@ -181,6 +181,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 cb82357

Please sign in to comment.