Skip to content

Commit e550cb8

Browse files
authored
Merge pull request #195 from karllhughes/master
Allowing json, jsonb in postgres
2 parents 4f5f7cf + 244696c commit e550cb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public function isGeometryType($field) {
471471
}
472472

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

477477
public function getDefaultCharset() {
@@ -1075,11 +1075,11 @@ public function isBinaryType($field) {
10751075
}
10761076

10771077
public function isGeometryType($field) {
1078-
return in_array($field->type,array('geometry'));;
1078+
return in_array($field->type,array('geometry'));
10791079
}
10801080

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

10851085
public function getDefaultCharset() {

0 commit comments

Comments
 (0)