]> granicus.if.org Git - postgis/commitdiff
Conditionally drop loader test tables (requires PostgreSQL >= 8.2 to support IF EXIST...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 29 Dec 2011 21:00:31 +0000 (21:00 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 29 Dec 2011 21:00:31 +0000 (21:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8616 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index d44e3370678fd271e542b8973199c395b2b42a0d..87ad26c26e99d4e73637fe13be63817366ff7836 100755 (executable)
@@ -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
 }
 
 #