Skip to content

Commit

Permalink
Add Postgres JSON support (manual cast only).
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jan 31, 2016
1 parent 658949a commit d52ce49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RedBeanPHP/QueryWriter/PostgreSQL.php
Expand Up @@ -38,6 +38,7 @@ class PostgreSQL extends AQueryWriter implements QueryWriter
const C_DATATYPE_SPECIAL_MONEY = 93;
const C_DATATYPE_SPECIAL_POLYGON = 94;
const C_DATATYPE_SPECIAL_MONEY2 = 95; //Numbers only money, i.e. fixed point numeric
const C_DATATYPE_SPECIAL_JSON = 96; //JSON support (only manual)
const C_DATATYPE_SPECIFIED = 99;

/**
Expand Down Expand Up @@ -139,6 +140,7 @@ public function __construct( Adapter $adapter )
self::C_DATATYPE_SPECIAL_MONEY => ' money ',
self::C_DATATYPE_SPECIAL_MONEY2 => ' numeric(10,2) ',
self::C_DATATYPE_SPECIAL_POLYGON => ' polygon ',
self::C_DATATYPE_SPECIAL_JSON => ' json ',
);

$this->sqltype_typeno = array();
Expand Down

0 comments on commit d52ce49

Please sign in to comment.