From 6086104f0bb66bf9e789e092cf17d3e0041f5d10 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 22 Apr 2022 15:23:50 +0200
Subject: [PATCH] 5298 - fix quoting in mysql create

---
 plugins/localdump/mysql.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/localdump/mysql.sh b/plugins/localdump/mysql.sh
index 072fd11..2fad72e 100755
--- a/plugins/localdump/mysql.sh
+++ b/plugins/localdump/mysql.sh
@@ -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
-- 
GitLab