Backticks to allow database names with hyphens, reserved words...

juan_g - October 27, 2009 - 01:38
Project:vBulletin to Drupal
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

AttachmentSize
vbtodrupal-backticks.patch1.16 KB
 
 

Drupal is a registered trademark of Dries Buytaert.