It is found that the DiscuzDB layer cross-database ing relationship table name prefix BUG, discuz relationship table. The DiscuzDB layer has a cross-database ing relationship Table name prefix BUG. discuz relational Table scenario: create a Table model in Discuz, but the database where the Table is located is not in the same database as Discuz. Discuz seems to be a major discovery of the Discuz DB layer cross-database ing relationship table name prefix BUG, discuz relationship table
Scenario:
Create a Table model in Discuz, but the database where the Table is located is not in the same database as Discuz.
Discuz seems to provide a cross-database ing mechanism after 3.
There is no ing problem, mainly because the table name prefix is not mapped accordingly. Of course, it is not a bug. Because he only considers discuz's own system. Generally, the table name prefix is the same.
In the db Driver Class, db_driver_mysql (I ):
Append Code in function table_name
if(!empty($this->config[$id]['tablepre'])){ $this->tablepre = $this->config[$id]['tablepre']; }
The cross-database ing relationship Table name prefix BUG in the Analytic DB layer. discuz relational Table scenario: create a Table model in Discuz, but the database where the Table is located is not in the same database as Discuz. Discuz seems to be...