Skip to content

Commit 60e7b14

Browse files
committed
Enable read usage of information schema tables in write queries
1 parent 77aba17 commit 60e7b14

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

wp-includes/sqlite-ast/class-wp-sqlite-driver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,11 +4106,6 @@ public function translate_select_item( WP_Parser_Node $node ): string {
41064106
* @throws WP_SQLite_Driver_Exception When the translation fails.
41074107
*/
41084108
public function translate_table_ref( WP_Parser_Node $node ): string {
4109-
// Information schema is currently accessible only in read-only queries.
4110-
if ( ! $this->is_readonly ) {
4111-
return $this->translate_sequence( $node->get_children() );
4112-
}
4113-
41144109
// The table reference is in "<schema>.<table>" or "<table>" format.
41154110
$parts = $node->get_descendant_nodes( 'identifier' );
41164111
$table = array_pop( $parts );

0 commit comments

Comments
 (0)