Opened 3 months ago
Closed 2 months ago
#63777 closed enhancement (fixed)
wpdb::get_table_from_query() doesn't support queries with `SET STATEMENT ... FOR`
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.9 | Priority: | low |
Severity: | minor | Version: | |
Component: | Database | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
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)
This ticket was mentioned in PR #9374 on WordPress/wordpress-develop by @dd32.
3 months ago
#1
- Keywords has-patch has-unit-tests added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/63777