File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -184,17 +184,17 @@ createdb "$dbname3" || createdb_status=$?
184
184
if " $MAKE " -C " $oldsrc " installcheck; then
185
185
oldpgversion=` psql -X -A -t -d regression -c " SHOW server_version_num" `
186
186
187
- # before dumping, get rid of objects not existing in later versions
187
+ # before dumping, get rid of objects not feasible in later versions
188
188
if [ " $newsrc " != " $oldsrc " ]; then
189
189
fix_sql=" "
190
190
case $oldpgversion in
191
191
804?? )
192
- fix_sql=" DROP FUNCTION public.myfunc(integer); DROP FUNCTION public.oldstyle_length(integer, text);"
193
- ;;
194
- * )
195
- fix_sql=" DROP FUNCTION public.oldstyle_length(integer, text);"
192
+ fix_sql=" DROP FUNCTION public.myfunc(integer);"
196
193
;;
197
194
esac
195
+ fix_sql=" $fix_sql
196
+ DROP FUNCTION IF EXISTS
197
+ public.oldstyle_length(integer, text); -- last in 9.6" ;
198
198
psql -X -d regression -c " $fix_sql ;" || psql_fix_sql_status=$?
199
199
fi
200
200
You can’t perform that action at this time.
0 commit comments