Closed (won't fix)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2011 at 10:19 UTC
Updated:
25 Jul 2013 at 23:34 UTC
My legacy data has spaces in some of the columns but the query run has the spaces removed. Not certain whether this is to do with dbtng module in d6 or the migrate one.
Comments
Comment #1
chrisivens commentedLooking through the code, it seems that the whole db layer is not written to cope with any spaces in table or column names. It is way too much hassle to rewrite for this edge-case. I'm cleaning the data instead.
Comment #2
dalinSeriously? There's no way to handle a column name with a space? This is going to be a lot of work to clean these legacy tables.
Comment #3
dalinWarning: here be dragons!
To those who come after me: rather than trying to hack things to work with spaces in column names you will be _much_ better off with some simple SQL to convert your legacy table:
Comment #4
13rac1 commentedSame problem here. I've removed whitespace as a workaround, but Drupal should support access to valid MySQL column names. Yes, this is already a Drupal core issue: #1426084: Provide backtick escaping for MySQL in DB abstraction layer
Comment #5
13rac1 commentedFrom https://drupal.org/node/1426084#comment-6467210, here is a solution for the problem of needing backticks:
Added to docs: https://drupal.org/node/2050819