From: Paul Ramsey Date: Thu, 29 Dec 2011 21:00:31 +0000 (+0000) Subject: Conditionally drop loader test tables (requires PostgreSQL >= 8.2 to support IF EXIST... X-Git-Tag: 2.0.0alpha1~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2ee49ad630b47dbfe33d50184f45f951565d1e1;p=postgis Conditionally drop loader test tables (requires PostgreSQL >= 8.2 to support IF EXISTS syntax) git-svn-id: http://svn.osgeo.org/postgis/trunk@8616 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test b/regress/run_test index d44e33706..87ad26c26 100755 --- a/regress/run_test +++ b/regress/run_test @@ -217,7 +217,7 @@ run_simple_test () drop_table_if_exists() { tblname="$1" - ${PSQL} -c "DROP TABLE ${tblname}" "${DB}" >> ${TMPDIR}/regress_log 2>&1 + ${PSQL} -c "DROP TABLE IF EXISTS ${tblname}" "${DB}" >> ${TMPDIR}/regress_log 2>&1 } #