Skip to content

Commit

Permalink
add checking for json type
Browse files Browse the repository at this point in the history
  • Loading branch information
cyga committed May 27, 2012
1 parent 582e489 commit 9b2538f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test-json-response-deserialize-callback.sh
Expand Up @@ -10,6 +10,14 @@ psql="$bin/psql"

waits=3

# check if json type (custom one, not new one in postgre itself) is installed
output=`$psql -tA -c"select to_json('asdf'::text)"`
if [[ "$?" != "0" || '"asdf"' != "$output" ]]; then
echo "json type (http://git.postgresql.org/gitweb/?p=json-datatype.git;a=summary) wasn't properly installed"
echo "skipping this tests"
exit
fi

trap 'if [ -n "$spid" ]; then echo "killing server $spid"; kill $spid; fi; exit' 2 13 15

$psql -f "$test_dir/json-response-deserialize-callback.sql"
Expand Down

0 comments on commit 9b2538f

Please sign in to comment.