Commit d3581d43 authored by Lucas Fernandes de Oliveira's avatar Lucas Fernandes de Oliveira

Merge branch 'issue/15' into 'master'

Issue #16: Add UTF8 encoding

See merge request !21
parents c5573b39 4fddbb15
Pipeline #21075 passed with stage
in 1 minute and 4 seconds
......@@ -141,3 +141,13 @@ cpyComand() {
echo "COPY OFFSET 2 INTO \"$table\" FROM '$file' ON CLIENT USING DELIMITERS ';','\\n','\"' NULL AS '';"
fi
}
# Creates the DROP TABLE statement
dropComand() {
table=${1:-""}
if [[ $DBMS == "psql" ]]; then
echo "DROP TABLE IF EXISTS \"$table\" CASCADE;"
elif [[ $DBMS == "monet" ]]; then
echo "DROP TABLE \"$table\" CASCADE;"
fi
}
......@@ -32,8 +32,3 @@ dropDB() {
return $error
}
# Creates the DROP TABLE statement
dropComand() {
table=${1:-""}
echo "DROP TABLE \"$table\" CASCADE;"
}
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment