vanilla/addons

ForumMerge: Escaping issue when trying to get the structure of a table

patches opened this issue · 1 comments

There is an issue when adding the database name before the table name when it comes to fetching the structure of a table.

$oldColumns = Gdn::structure()->get($oldDatabase.'.'.$oldPrefix.$table)->columns();

It looks like the escapeIdentifier($refExpr) function from the Gdn_MySQLDriver class is wrapping the prefix and the table name with backticks.

Here's a little more info around the error.

screen shot 2019-02-01 at 4 30 20 pm

An issue has been opened in core, see the reference above.