From f5a52cadc6249ece1a9a83388abc71b455793bd8 Mon Sep 17 00:00:00 2001 From: Jan Jakes Date: Fri, 20 Dec 2024 12:32:57 +0100 Subject: [PATCH] Ignore index hints --- wp-includes/sqlite-ast/class-wp-sqlite-driver.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/sqlite-ast/class-wp-sqlite-driver.php b/wp-includes/sqlite-ast/class-wp-sqlite-driver.php index 58a7bd4d..30752a07 100644 --- a/wp-includes/sqlite-ast/class-wp-sqlite-driver.php +++ b/wp-includes/sqlite-ast/class-wp-sqlite-driver.php @@ -1328,6 +1328,9 @@ private function translate( $ast ) { // The "AS" keyword is optional in MySQL, but required in SQLite. return 'AS ' . $this->translate( $ast->get_child_node() ); + case 'indexHint': + case 'indexHintList': + return null; default: return $this->translate_sequence( $ast->get_children() ); }