From 4fddbb15c09472741257a60ebe5e145a12614805 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes de Oliveira Date: Thu, 25 Jul 2019 09:14:50 -0300 Subject: [PATCH] Issue #16: Add UTF8 encoding Signed-off-by: Lucas Fernandes de Oliveira --- src/dbms.sh | 2 +- test/psql.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbms.sh b/src/dbms.sh index fc5f807..b1444cd 100644 --- a/src/dbms.sh +++ b/src/dbms.sh @@ -146,7 +146,7 @@ cpyComand() { dropComand() { table=${1:-""} if [[ $DBMS == "psql" ]]; then - echo "DROP IF EXISTS TABLE \"$table\" CASCADE;" + echo "DROP TABLE IF EXISTS \"$table\" CASCADE;" elif [[ $DBMS == "monet" ]]; then echo "DROP TABLE \"$table\" CASCADE;" fi diff --git a/test/psql.sh b/test/psql.sh index ee5fea2..6520349 100755 --- a/test/psql.sh +++ b/test/psql.sh @@ -99,7 +99,7 @@ else fi echo "Should drop the database" -./manager.sh psql drop &> /dev/null +./manager.sh psql drop if [[ $? -eq 0 ]]; then echo -e "\tSucess" -- GitLab