Skip to content
Snippets Groups Projects
Commit 6086104f authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

5298 - fix quoting in mysql create

parent fab34bcb
Branches
No related tags found
1 merge request!685298 - fix quoting in mysql create
......@@ -70,7 +70,7 @@ function mysql._check(){
# param string name of the dabase scheme
function mysql.db.create(){
local _dbname=$1
echo "CREATE DATABASE IF NOT EXISTS ${_dbname};" | mysql
echo "CREATE DATABASE IF NOT EXISTS \`${_dbname}\`;" | mysql
fetchrc >/dev/null
test $myrc -eq 0 && mysql_COUNT_CREATE+=1
test $myrc -eq 0 || mysql_COUNT_ERRORS+=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment