1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00

fix test if builtin json converter is not available

This commit is contained in:
Michael Wallner 2015-05-29 11:17:49 +02:00
parent b44c00e047
commit a1fc94a694

View File

@ -131,7 +131,7 @@ $t = new pq\Types($c);
$c->setConverter(new HStoreConverter($t));
$c->setConverter(new IntVectorConverter($t));
if (!defined("pq\\Types::JSON")) {
if (!(defined("pq\\Types::JSON") && defined("pq\\Result::CONV_JSON"))) {
$c->setConverter(new JSONConverter($t));
}
$c->setConverter(new BoxConverter($t));