Bug Report #1142
Database->list_tables() ignores table_prefix
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | Libraries:Database | |||
| Target version: | 2.4 | |||
| Resolution: | fixed | Points: |
Description
The function should return a list of tables with the configured prefix rather than all tables existing in the database.
For example, a database hosting two applications would utilize two prefixes, 'mdl_' and 'jos_', to avoid collisions. Each application should be agnostic to the configured prefix and should find only its tables.
Attached are patches against branch/2.4 which depend on #1049.
Related issues
Associated revisions
Fixing #1142 (adding list_tables to 2.4 Database library)
Strip table_prefix from list_tables() output. Refs #1142
History
Updated by Chris Bandy almost 3 years ago
According to the documentation I found for MSSQL, the current driver looks wrong and I am unable to test. MSSQL is excluded from these patches.
Updated by John Heathco over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- Resolution set to fixed
- 11 set to 2.3.4