PluginProbe
SQLite Database Integration / 3.1.0
SQLite Database Integration v3.1.0
3.1.0 3.0.2 3.0.1 trunk 2.1.13 2.1.14 2.1.15 2.1.16 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.18 2.2.19 2.2.2 2.2.20 2.2.21 2.2.22 2.2.23 All 33 releases
← All changes | wp-includes/database/mysql/class-wp-mysql-parser.php +16 -0 2.2.23 → 3.1.0 View file →
@@ -1,6 +1,11 @@
1 1 <?php
2 2
3 +/**
4 + * MySQL parser used by the SQLite driver.
5 + *
6 + * @access private
7 + */
3 8 class WP_MySQL_Parser extends WP_Parser {
4 9 /**
5 10 * The current query AST.
6 11 *
@@ -6,8 +11,19 @@
6 11 *
7 12 * @var WP_Parser_Node|null
8 13 */
9 14 private $current_ast;
15 +
16 + /**
17 + * Reset this parser with a new token stream.
18 + *
19 + * @param array<WP_Parser_Token> $tokens The parser tokens.
20 + */
21 + public function reset_tokens( array $tokens ): void {
22 + $this->tokens = $tokens;
23 + $this->position = 0;
24 + $this->current_ast = null;
25 + }
10 26
11 27 /**
12 28 * Parse the next query from the input SQL string.
13 29 *