projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cedf3b
)
testlib.sh: use CASCADE when dropping table
author
Marko Kreen
<markokr@gmail.com>
Wed, 28 Nov 2012 10:32:46 +0000
(12:32 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 28 Nov 2012 10:32:46 +0000
(12:32 +0200)
tests/testlib.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/testlib.sh
b/tests/testlib.sh
index 82f6e8be73ebc07499c6b98ab5742237f6bdba06..fe96c6d00b2c7013575515004972c8009f8eb6d1 100755
(executable)
--- a/
tests/testlib.sh
+++ b/
tests/testlib.sh
@@
-21,7
+21,7
@@
cleardb() {
drop schema if exists pgq cascade;
"
psql -q -t -d $1 -c "
- select 'drop table ' || relname || ';' from pg_class c, pg_namespace n
+ select 'drop table ' || relname || '
cascade
;' from pg_class c, pg_namespace n
where relnamespace = n.oid and n.nspname = 'public' and c.relkind='r';
" | psql -q -d $1
psql -q -t -d $1 -c "