Skip to content

Commit 1e8c9b3

Browse files
author
Till Brehm
committed
Fixed a issie with numeric mysql database names.
1 parent e564b47 commit 1e8c9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/mysql_clientdb_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function db_insert($event_name, $data) {
195195
}
196196

197197
//* Create the new database
198-
if ($link->query('CREATE DATABASE '.$link->escape_string($data['new']['database_name']).$query_charset_table)) {
198+
if ($link->query('CREATE DATABASE `'.$link->escape_string($data['new']['database_name']).'`'.$query_charset_table)) {
199199
$app->log('Created MySQL database: '.$data['new']['database_name'], LOGLEVEL_DEBUG);
200200
} else {
201201
$app->log('Unable to create the database: '.$link->error, LOGLEVEL_WARNING);

0 commit comments

Comments
 (0)