Skip to content

Commit

Permalink
Ignore index hints
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJakes committed Dec 20, 2024
1 parent cf6008d commit f5a52ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-includes/sqlite-ast/class-wp-sqlite-driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
Expand Down

0 comments on commit f5a52ca

Please sign in to comment.