The DiscuzDB layer cross-database ing relationship table name prefix BUG was found.

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.