edannenberg / maven-magento-plugin

A Maven plugin for Magento projects.
Apache License 2.0
7 stars 3 forks source link

Escape DB Names by creation #3

Open FlorianX opened 12 years ago

FlorianX commented 12 years ago

If you want to create some DB like "magento-test" you'll get an error like:

[INFO] ERROR 1064 (42000) at line 1: 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 '-test' at line 1

So you have to escape the DB name by creation here and also here

edannenberg commented 12 years ago

Thanks, fixed with https://github.com/edannenberg/maven-magento-plugin/commit/a712c9216ae13eec5fa36f2ae230ec4ccfa3f63e