When trying to make an import, many errors like the following appeared, and nothing was imported:

user warning: 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 '- (etc...)

The problem was database names with hyphens. For MySQL database type, backticks are necessary to allow database names with hyphens, reserved words...

This patch fixed this bug.

CommentFileSizeAuthor
vbtodrupal-backticks.patch1.16 KBjuan_g

Comments

liam mcdermott’s picture

Status: Needs review » Fixed

Thanks for this and sorry for taking so long before looking at it.

Patch committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.