Welcome Guest, Not a member yet? Register   Sign In
Database Forge add_column query problem
#2

[eluser]GSV Sleeper Service[/eluser]
you could try putting the table name in quotes, or replacing the spaces with underscores before passing it to add_column.

I was bored so I traced the code back to a function called _protect_identifiers in [database]_driver.php, it looks like this is where the backticks are being added, this comment caught my eye.

Code:
// This function may get "item1 item2" as a string, and so
// we may need "`item1` `item2`" and not "`item1 item2`"


Messages In This Thread
Database Forge add_column query problem - by El Forum - 04-21-2008, 09:50 AM
Database Forge add_column query problem - by El Forum - 04-21-2008, 11:57 AM
Database Forge add_column query problem - by El Forum - 04-21-2008, 12:45 PM
Database Forge add_column query problem - by El Forum - 04-21-2008, 02:38 PM
Database Forge add_column query problem - by El Forum - 04-21-2008, 04:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB