Skip to content

Commit 244696c

Browse files
committed
Allowing json, jsonb in postgres
1 parent 4f5f7cf commit 244696c

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)