2008-01-11, 11:57 AM
Hi,
I set $config['table_prefix'] to "mybb:" and the forum refused to work because of MySQLi query error:
MySQLi error: 1064
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 ':datacache' at line 1
Query: SELECT title,cache FROM mybb:datacache
I searched a bit in the code and saw, that table names are just prefixed by the constant TABLE_PREFIX, which is not sufficient. If the TABLE_PREFIX contains a double colon (or any other 'strange' character), the whole table name must be surrounded/quoted by backquotes. At the moment it is not possible to use "mybb:" or similar as the table prefix.
I set $config['table_prefix'] to "mybb:" and the forum refused to work because of MySQLi query error:
MySQLi error: 1064
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 ':datacache' at line 1
Query: SELECT title,cache FROM mybb:datacache
I searched a bit in the code and saw, that table names are just prefixed by the constant TABLE_PREFIX, which is not sufficient. If the TABLE_PREFIX contains a double colon (or any other 'strange' character), the whole table name must be surrounded/quoted by backquotes. At the moment it is not possible to use "mybb:" or similar as the table prefix.