Skip to content

Commit

Permalink
Merge pull request #195 from karllhughes/master
Browse files Browse the repository at this point in the history
Allowing json, jsonb in postgres
  • Loading branch information
mevdschee committed Feb 28, 2017
2 parents 4f5f7cf + 244696c commit e550cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api.php
Expand Up @@ -471,7 +471,7 @@ public function isGeometryType($field) {
}

public function isJsonType($field) {
return $field->type == 'jsonb';
return in_array($field->type,array('json','jsonb'));
}

public function getDefaultCharset() {
Expand Down Expand Up @@ -1075,11 +1075,11 @@ public function isBinaryType($field) {
}

public function isGeometryType($field) {
return in_array($field->type,array('geometry'));;
return in_array($field->type,array('geometry'));
}

public function isJsonType($field) {
return in_array($field->type,array('json','jsonb'));;
return in_array($field->type,array('json','jsonb'));
}

public function getDefaultCharset() {
Expand Down

0 comments on commit e550cb8

Please sign in to comment.