Opened 15 months ago
Closed 14 months ago
#63777 closed enhancement (fixed)
wpdb::get_table_from_query() doesn't support queries with `SET STATEMENT ... FOR`
| Reported by: | dd32 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | low | Milestone: | 6.9 |
| Component: | Database | Version: | |
| Severity: | minor | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
MariaDB supports setting various parameters for queries, but wpdb::get_table_from_query() doesn't currently understand this.
For example:
wp> var_dump( $wpdb->get_table_from_query( "SET STATEMENT max_statement_time=10 FOR SELECT something FROM table_name WHERE something-is-expensive" ) ); bool(false)
I'm not sure how useful supporting this would be to most WordPress plugins, nor how it would apply to other database engines.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/63777