MantisBT - CDash
View Issue Details
0008084CDashpublic2008-11-12 19:052008-11-13 10:11
Daniel Pfeifer 
Julien Jomier 
normalblockalways
closedfixed 
 
1.4 
0008084: Database name cannot contain minus (-)

For a database name like 'db12345-1' it says:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1
No tags attached.
Issue History
2008-11-12 19:05Daniel PfeiferNew Issue
2008-11-13 10:00Julien JomierStatusnew => assigned
2008-11-13 10:00Julien JomierAssigned To => Julien Jomier
2008-11-13 10:11Julien JomierNote Added: 0014100
2008-11-13 10:11Julien JomierStatusassigned => closed
2008-11-13 10:11Julien JomierResolutionopen => fixed
2008-11-13 10:11Julien JomierFixed in Version => 1.4

Notes
(0014100)
Julien Jomier   
2008-11-13 10:11   
Fixed in SVN. Thanks for the report. If you are not using SVN you can replace the line 176 of install.php by

  if(!mysql_query("CREATE DATABASE IF NOT EXISTS `$CDASH_DB_NAME`"))

Adding the ` around $CDASH_DB_NAME.