Skip to content

Commit f5a52ca

Browse files
committed
Ignore index hints
1 parent cf6008d commit f5a52ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,9 @@ private function translate( $ast ) {
13281328
13291329
// The "AS" keyword is optional in MySQL, but required in SQLite.
13301330
return 'AS ' . $this->translate( $ast->get_child_node() );
1331+
case 'indexHint':
1332+
case 'indexHintList':
1333+
return null;
13311334
default:
13321335
return $this->translate_sequence( $ast->get_children() );
13331336
}

0 commit comments

Comments
 (0)